|
|
@ -757,6 +757,7 @@ Status PosixWritableFile::Allocate(uint64_t offset, uint64_t len) { |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef OS_LINUX |
|
|
|
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()); |
|
|
|
assert(nbytes <= std::numeric_limits<off_t>::max()); |
|
|
|
assert(nbytes <= std::numeric_limits<off_t>::max()); |
|
|
@ -771,6 +772,7 @@ 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 |
|
|
|