Btrfs-progs: Fix set_label_unmounted() with label length validation
authorJeff Liu <jeff.liu@oracle.com>
Mon, 17 Dec 2012 11:35:27 +0000 (11:35 +0000)
committerDavid Sterba <dsterba@suse.cz>
Tue, 26 Feb 2013 18:24:14 +0000 (19:24 +0100)
commit3988e807025b6f2a0b2d26d21bdbfecf29f0aecb
treec07382aa2195c75aebb86acb3e1b800e928aff72
parent619dc61cae1420da2dec48f689d49b9b346abc15
Btrfs-progs: Fix set_label_unmounted() with label length validation

Currently, we keeping silent if the label length is exceeding BTRFS_LABEL_SIZE - 1, and just
truncating the characters beyond that.

This patch make it return error and exit in this situation.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
btrfslabel.c