From: Goffredo Baroncelli <kreij...@inwind.it> In du_walk_dir(), when du_add_file() returns an error it is usually ignored. However if the error is returned querying the last item, the error is returned to the caller.
Signed-off-by: Goffredo Baroncelli <kreij...@inwind.it> --- cmds-fi-du.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmds-fi-du.c b/cmds-fi-du.c index f106f45b..4bf6af3e 100644 --- a/cmds-fi-du.c +++ b/cmds-fi-du.c @@ -403,6 +403,7 @@ static int du_walk_dir(struct du_dir_ctxt *ctxt, struct rb_root *shared_extents) shared_extents, &tot, &shr, 0); if (ret == -ENOTTY) { + ret = 0; continue; } else if (ret) { fprintf(stderr, -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html