Re: [PATCH] btrfs-progs: report failure when resize ioctl fails

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

 



On Tue, Apr 21, 2015 at 11:38:47PM -0400, Zygo Blaxell wrote:
> The BTRFS_IOC_RESIZE ioctl returns 0 on success, negative for POSIX
> errors, and positive for btrfs-specific errors.
> 
> If resize fails with a btrfs-specific error, decode the error and
> report it.  If we can't decode the error, report its numeric value so
> that the userspace tool is not instantly useless when a new error code
> is defined in the kernel.
> 
> Exit with non-zero status on any resize error.  This is very important
> for scripts that will shrink the underlying storage when btrfs reports
> success!

Added the signed-off-by and applied, thanks.
--
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