[PATCH] btrfs-progs: Corrected return values from btrfsctl.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



btrfsctl.c should return 0 if ioctl succeeds

Signed-off-by: Prasad Joshi <prasadjoshi124@xxxxxxxxx>
---
diff --git a/btrfsctl.c b/btrfsctl.c
index 66c4e89..d602fc4 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -232,8 +232,8 @@ int main(int ac, char **av)
        }
        printf("%s\n", BTRFS_BUILD_VERSION);
        if (ret)
-               exit(0);
-       else
                exit(1);
+       else
+               exit(0);
 }
--
v0.19-3
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux