Fix error in previous commit of 'ftruncate' to 'fallocate'.
Summary: Fix error in previous commit of 'ftruncate' to 'fallocate'. Test Plan: Reviewers: CC: Task ID: # Blame Rev:
This commit is contained in:
parent
8457b74c26
commit
b825df81e2
@ -365,7 +365,7 @@ TEST(EnvPosixTest, PosixRandomRWFileTest) {
|
|||||||
unique_ptr<RandomRWFile> file;
|
unique_ptr<RandomRWFile> file;
|
||||||
ASSERT_OK(env_->NewRandomRWFile(fname, &file, soptions));
|
ASSERT_OK(env_->NewRandomRWFile(fname, &file, soptions));
|
||||||
// If you run the unit test on tmpfs, then tmpfs might not
|
// If you run the unit test on tmpfs, then tmpfs might not
|
||||||
// support ftruncate. It is still better to trigger that
|
// support fallocate. It is still better to trigger that
|
||||||
// code-path instead of eliminating it completely.
|
// code-path instead of eliminating it completely.
|
||||||
file.get()->Allocate(0, 10*1024*1024);
|
file.get()->Allocate(0, 10*1024*1024);
|
||||||
ASSERT_OK(file.get()->Write(100, Slice("Hello world")));
|
ASSERT_OK(file.get()->Write(100, Slice("Hello world")));
|
||||||
|
Loading…
Reference in New Issue
Block a user