Changeset 124 for branches/samba-3.0/source/tdb/common
- Timestamp:
- Mar 12, 2008, 9:08:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/tdb/common/io.c
r71 r124 112 112 TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_write: wrote only " 113 113 "%d of %d bytes at %d, trying once more\n", 114 114 (uint32_t)written, len, off)); 115 115 errno = ENOSPC; 116 116 written = pwrite(tdb->fd, (void *)((char *)buf+written), … … 300 300 } else if (written == -1) { 301 301 TDB_LOG((tdb, TDB_DEBUG_FATAL, "expand_file write of " 302 "%d bytes failed (%s)\n", n, strerror(errno)));302 "%d bytes failed (%s)\n", (uint32_t)n, strerror(errno))); 303 303 return -1; 304 304 } else if (written != n) { 305 305 TDB_LOG((tdb, TDB_DEBUG_WARNING, "expand_file: wrote " 306 "only %d of %d bytes - retrying\n", written,n)); 306 "only %d of %d bytes - retrying\n", 307 (uint32_t)written, (uint32_t)n)); 307 308 } 308 309 addition -= written;
Note:
See TracChangeset
for help on using the changeset viewer.