Skip to content

Instantly share code, notes, and snippets.

@platinum55
Created January 24, 2019 16:07
Show Gist options
  • Save platinum55/d361e90cbf06f8865f041aad4f2ee163 to your computer and use it in GitHub Desktop.
Save platinum55/d361e90cbf06f8865f041aad4f2ee163 to your computer and use it in GitHub Desktop.
Fix for missing files in GCSF
--- a/src/gcsf/filesystem.rs 2018-12-12 13:59:41.000000000 +0100
+++ b/src/gcsf/filesystem.rs 2019-01-24 16:47:16.116261641 +0100
@@ -150,8 +150,11 @@ impl Filesystem for GCSF {
match self.manager.get_children(&FileId::Inode(ino)) {
Some(children) => {
for child in children.iter().skip(offset as usize) {
- reply.add(child.inode(), curr_offs, child.kind(), &child.name());
- curr_offs += 1;
+ if reply.add(child.inode(), curr_offs, child.kind(), &child.name()) {
+ break;
+ } else {
+ curr_offs += 1;
+ }
}
reply.ok();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment