Skip to content

Instantly share code, notes, and snippets.

@platinum55
platinum55 / gist:d361e90cbf06f8865f041aad4f2ee163
Created January 24, 2019 16:07
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;