|
|
@ -755,6 +755,7 @@ Status PosixWritableFile::Allocate(uint64_t offset, uint64_t len) { |
|
|
|
return IOError(filename_, errno); |
|
|
|
return IOError(filename_, errno); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
Status PosixWritableFile::RangeSync(uint64_t offset, uint64_t nbytes) { |
|
|
|
Status PosixWritableFile::RangeSync(uint64_t offset, uint64_t nbytes) { |
|
|
|
assert(offset <= std::numeric_limits<off_t>::max()); |
|
|
|
assert(offset <= std::numeric_limits<off_t>::max()); |
|
|
@ -770,7 +771,6 @@ Status PosixWritableFile::RangeSync(uint64_t offset, uint64_t nbytes) { |
|
|
|
size_t PosixWritableFile::GetUniqueId(char* id, size_t max_size) const { |
|
|
|
size_t PosixWritableFile::GetUniqueId(char* id, size_t max_size) const { |
|
|
|
return PosixHelper::GetUniqueIdFromFile(fd_, id, max_size); |
|
|
|
return PosixHelper::GetUniqueIdFromFile(fd_, id, max_size); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* PosixRandomRWFile |
|
|
|
* PosixRandomRWFile |
|
|
|