Re: btrfsctl exit with 1 when succeed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I also want to know why this conversion is needed.
This might be a typo, I think.

Could someone tell us why?
Can we fix this conversion? Or shouldn't we fix it
considering back-compatibility?

Regards,
taruisi

(2009/11/11 15:16), Gong, Zhipeng wrote:
> We'd like to use btrfsctl in a shell script, however, btrfsctl exit with 1 even if the operation is successful, which is opposite to the usual shell command convention.
> Why btrfsctl add this conversion in the end?
>          if (ret)
>                   exit(0);
>          else
>                   exit(1);
> 
> Thanks
> Zhipeng
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux