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

2015-04-22 Thread David Sterba
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, re

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

2015-04-21 Thread Zygo Blaxell
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 usele