btrfs-progs: subvolume sync: fix handling of -s option
authorMarek Rusinowski <marekrusinowski@gmail.com>
Wed, 4 May 2016 13:36:35 +0000 (15:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 11 May 2016 14:37:12 +0000 (16:37 +0200)
commita6bbbe60874cd7f92bcf55f75fa26f33957e9b25
tree90d2fc66ebffd4da79918750f17ede155e219cde
parent5c5a6227721a779389af3e7eb67b63f15c638eb9
btrfs-progs: subvolume sync: fix handling of -s option

Setting check interval for subvolume sync resulted
in picking wrong element from argv for it's value:

  $ btrfs subvolume sync -s 10 ./dir
  ERROR: invalid sleep interval ./dir
  $ btrfs subvolume sync ./dir -s 10
  Segmentation fault

Signed-off-by: Marek Rusinowski <marekrusinowski@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-subvolume.c