btrfs: balance: print args during start and resume
authorAnand Jain <anand.jain@oracle.com>
Tue, 20 Nov 2018 08:12:56 +0000 (16:12 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:39 +0000 (14:51 +0100)
commit56fc37d936909cdfb6d8c8674fd64e66a9ec8f7d
treea33ba963137657813fe2c58a3a7b931b26401638
parentf89e09cf45533eb25ca8e7fbedec697ecb37eb94
btrfs: balance: print args during start and resume

The information about balance arguments is important for system audit,
this patch prints the textual representation when balance starts or is
resumed.

Example command:

 $ btrfs balance start -f -mprofiles=raid1,convert=single,soft -dlimit=10..20,usage=50 /btrfs

Example kernel log output:

 BTRFS info (device sdb): balance: start -f -dusage=50,limit=10..20 -mconvert=single,soft,profiles=raid1 -sconvert=single,soft,profiles=raid1

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog, simplify code ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c