mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
remove stale comment
Summary: this comment is not accurate since removing libfuse. The good news is that doing that meant that I didn't need to touch DirList when removing libfuse. Reviewed By: chadaustin Differential Revision: D6672533 fbshipit-source-id: 54216685b03b8f6dd7ee96b7bc38bb91d1b33366
This commit is contained in:
parent
0d6c3a31cd
commit
7c6d65c432
@ -21,10 +21,6 @@ DirList::DirList(size_t maxSize)
|
||||
: buf_(new char[maxSize]), end_(buf_.get() + maxSize), cur_(buf_.get()) {}
|
||||
|
||||
bool DirList::add(StringPiece name, ino_t inode, dtype_t type, off_t off) {
|
||||
// The libfuse APIs unfortunately only accept null terminated strings,
|
||||
// so we manually add the fuse_dirent object here rather than using
|
||||
// fuse_add_direntry().
|
||||
|
||||
size_t avail = end_ - cur_;
|
||||
auto entLength = FUSE_NAME_OFFSET + name.size();
|
||||
auto fullSize = FUSE_DIRENT_ALIGN(entLength);
|
||||
|
Loading…
Reference in New Issue
Block a user