diff options
Diffstat (limited to 'btrfslabel.c')
-rw-r--r-- | btrfslabel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/btrfslabel.c b/btrfslabel.c index 88a51962..a421a8b3 100644 --- a/btrfslabel.c +++ b/btrfslabel.c @@ -56,7 +56,7 @@ static int change_label_unmounted(char *dev, char *nLabel) */ root = open_ctree(dev, 0, 1); if (!root) /* errors are printed by open_ctree() */ - return; + return -1; trans = btrfs_start_transaction(root, 1); strncpy(root->fs_info->super_copy.label, nLabel, BTRFS_LABEL_SIZE); @@ -65,6 +65,7 @@ static int change_label_unmounted(char *dev, char *nLabel) /* Now we close it since we are done. */ close_ctree(root); + return 0; } int get_label_unmounted(char *dev) |