Minor huge pages library changes
authorTudor Bosman <tudorb@fb.com>
Sat, 1 Sep 2012 02:39:12 +0000 (19:39 -0700)
committerJordan DeLong <jdelong@fb.com>
Mon, 17 Sep 2012 01:28:05 +0000 (18:28 -0700)
commit6ea306c4d4bc93600ecb03702932950905111077
treee8be616e92e53e56b063c3c2785bd1a1a5980904
parent569f5f14ab8dcbdcb8dd2a0cd4fb7ccf5da769f0
Minor huge pages library changes

Summary:
Moved to separate library instead of :io
Got rid of the mode argument when creating files -- umask is your friend
Separated getSize interface from create
Added FsUtil.h for some fs::path operations
Switched some interfaces to fs::path instead of string / StringPiece
Canonicalize paths so we don't care whether paths are absolute or
relative

Test Plan: fs_util_test, by hand

Reviewed By: philipp@fb.com

FB internal diff: D564465
folly/experimental/io/FsUtil.cpp [new file with mode: 0644]
folly/experimental/io/FsUtil.h [new file with mode: 0644]
folly/experimental/io/HugePageUtil.cpp
folly/experimental/io/HugePages.cpp
folly/experimental/io/HugePages.h
folly/experimental/io/test/FsUtilTest.cpp [new file with mode: 0644]