summaryrefslogtreecommitdiffstats
path: root/fuse/fuse.c
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-01-19 16:23:42 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2013-01-19 16:23:42 +0100
commit31f0e5fa22a878fc871c245782f388a7b9336436 (patch)
tree48dbf415a7c6724877a9302629e0f47d9ca68836 /fuse/fuse.c
parentFix handling of blkid output (diff)
downloadandroid_bootable_recovery-31f0e5fa22a878fc871c245782f388a7b9336436.tar
android_bootable_recovery-31f0e5fa22a878fc871c245782f388a7b9336436.tar.gz
android_bootable_recovery-31f0e5fa22a878fc871c245782f388a7b9336436.tar.bz2
android_bootable_recovery-31f0e5fa22a878fc871c245782f388a7b9336436.tar.lz
android_bootable_recovery-31f0e5fa22a878fc871c245782f388a7b9336436.tar.xz
android_bootable_recovery-31f0e5fa22a878fc871c245782f388a7b9336436.tar.zst
android_bootable_recovery-31f0e5fa22a878fc871c245782f388a7b9336436.zip
Diffstat (limited to 'fuse/fuse.c')
-rw-r--r--fuse/fuse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fuse/fuse.c b/fuse/fuse.c
index 448c9cd50..98170cf9a 100644
--- a/fuse/fuse.c
+++ b/fuse/fuse.c
@@ -517,6 +517,7 @@ static int try_get_path(struct fuse *f, fuse_ino_t nodeid, const char *name,
if (name != NULL) {
s = add_name(&buf, &bufsize, s, name);
err = -ENOMEM;
+ printf("setting err to ENOMEM\n");
if (s == NULL)
goto out_free;
}
@@ -530,6 +531,7 @@ static int try_get_path(struct fuse *f, fuse_ino_t nodeid, const char *name,
if (!wnode->ticket)
wnode->ticket = ticket;
err = -EAGAIN;
+ printf("setting err to EAGAIN\n");
goto out_free;
}
wnode->treelock = -1;
@@ -541,16 +543,19 @@ static int try_get_path(struct fuse *f, fuse_ino_t nodeid, const char *name,
for (node = get_node(f, nodeid); node->nodeid != FUSE_ROOT_ID;
node = node->parent) {
err = -ENOENT;
+ printf("setting err to ENOENT\n");
if (node->name == NULL || node->parent == NULL)
goto out_unlock;
err = -ENOMEM;
+ printf("setting err to ENOMEM\n");
s = add_name(&buf, &bufsize, s, node->name);
if (s == NULL)
goto out_unlock;
if (ticket) {
err = -EAGAIN;
+ printf("setting err to EAGAIN\n");
if (node->treelock == -1 ||
(node->ticket && node->ticket != ticket))
goto out_unlock;