Dear all, when trying to replace a device of a file system for which a balance is running, btrfs-progs fails with the error message:
ERROR: ioctl(DEV_REPLACE_START) on '/mnt/xyz' returns error: <illegal result value> This might also be true for alike operations, such as "add", "delete" and "resize", since those cases do not seem to be considered in cmds-replace.c [0]. Apparently, this is not very helpful to the user (if not scary). In contrast, other commands give very helpful output in similar situations (e.g., "add/delete/… operation in progress" [1]). Other users' confusions might also be related to this potential issue [2]. This is probably very easy to fix for someone into ioctl return values and all this. Thanks and cheers, Lukas GNU/Linux 4.13.0-0.bpo.1-amd64 #1 SMP Debian 4.13.13-1~bpo9+1 (2017-11-22) x86_64 btrfs-progs v4.13.3 [0] https://github.com/kdave/btrfs-progs/blob/11c83cefb8b4a03b1835efaf603ddc95430a0c9e/cmds-replace.c#L48 [1] https://github.com/kdave/btrfs-progs/blob/9fe889ac02b9c49b885c8999f5dd4e192697fa83/ioctl.h#L709 [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866734 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html