aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-quota.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2013-09-04 23:22:26 +0800
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:20:41 -0400
commit92319d74d4799c9b3b32080a59cb3f999931a681 (patch)
treec8da08ea578dc4c69d01565e631f35053b62c9db /cmds-quota.c
parentc941ac9b8a0e5c3d7fb4ad7f5b6b11bc0dec1414 (diff)
downloadbtrfs-progs-92319d74d4799c9b3b32080a59cb3f999931a681.tar.gz
btrfs-progs-92319d74d4799c9b3b32080a59cb3f999931a681.tar.xz
btrfs-progs-92319d74d4799c9b3b32080a59cb3f999931a681.zip
Btrfs-progs: fix magic return value in cmds-quota.c
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-quota.c')
-rw-r--r--cmds-quota.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmds-quota.c b/cmds-quota.c
index 94e3a5c..89cc89c 100644
--- a/cmds-quota.c
+++ b/cmds-quota.c
@@ -48,7 +48,7 @@ static int quota_ctl(int cmd, int argc, char **argv)
fd = open_file_or_dir(path, &dirstream);
if (fd < 0) {
fprintf(stderr, "ERROR: can't access '%s'\n", path);
- return 12;
+ return 1;
}
ret = ioctl(fd, BTRFS_IOC_QUOTA_CTL, &args);
@@ -57,7 +57,7 @@ static int quota_ctl(int cmd, int argc, char **argv)
if (ret < 0) {
fprintf(stderr, "ERROR: quota command failed: %s\n",
strerror(e));
- return 30;
+ return 1;
}
return 0;
}
@@ -132,7 +132,7 @@ static int cmd_quota_rescan(int argc, char **argv)
if (ioctlnum != BTRFS_IOC_QUOTA_RESCAN && wait_for_completion) {
fprintf(stderr, "ERROR: -w cannot be used with -s\n");
- return 12;
+ return 1;
}
if (check_argc_exact(argc - optind, 1))
@@ -144,7 +144,7 @@ static int cmd_quota_rescan(int argc, char **argv)
fd = open_file_or_dir(path, &dirstream);
if (fd < 0) {
fprintf(stderr, "ERROR: can't access '%s'\n", path);
- return 12;
+ return 1;
}
ret = ioctl(fd, ioctlnum, &args);
@@ -160,7 +160,7 @@ static int cmd_quota_rescan(int argc, char **argv)
if (ret < 0) {
fprintf(stderr, "ERROR: quota rescan failed: "
"%s\n", strerror(e));
- return 30;
+ return 1;
} else {
printf("quota rescan started\n");
}