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 anand.j...@oracle.com
---
cmds-device.c | 7 +++
cmds-replace.c | 10 --
mkfs.c | 9 -
utils.c
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 anand.j...@oracle.com
---
cmds-device.c | 7 +++
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)) :
+fprintf(stderr, ERROR: