Re: [PATCH 3/3] btrfs_progs: handle error in the btrfs_prepare_device

2013-12-16 Thread Anand Jain
Thanks Wang. > s/btrfs_progs/btrfs-progs? yeah. updated my script. >> + >> +zero_dev_error: >> +if (ret) { >> +ret < 0 ? >> +fprintf(stderr, "ERROR: failed to zero device start '%s' - >> %s\n", >> +file, strerror(-ret)) : >> +fprint

Re: [PATCH 3/3] btrfs_progs: handle error in the btrfs_prepare_device

2013-12-16 Thread Wang Shilong
Hello Anand, s/btrfs_progs/btrfs-progs? more comments below… > this patch will handle the strerror reporting of the error instead of > printing errno, and also replaced the BUG_ON with the error handling > > Signed-off-by: Anand Jain > --- > cmds-device.c | 7 +++ > cmds-replace.c | 10 +

[PATCH 3/3] btrfs_progs: handle error in the btrfs_prepare_device

2013-12-16 Thread Anand Jain
this patch will handle the strerror reporting of the error instead of printing errno, and also replaced the BUG_ON with the error handling Signed-off-by: Anand Jain --- cmds-device.c | 7 +++ cmds-replace.c | 10 -- mkfs.c | 9 - utils.c| 30 ++