Re: [PATCH v3] Btrfs-progs: check out if the swap device

2013-03-04 Thread Tsutomu Itoh
On 2013/03/04 1:47, Brendan Hide wrote: On 2013/02/14 09:53 AM, Tsutomu Itoh wrote: +if (ret 0) { +fprintf(stderr, error checking %s status: %s\n, file, +strerror(-ret)); +exit(1); +} ... +/* check if the device is busy */ +

Re: [PATCH v3] Btrfs-progs: check out if the swap device

2013-03-03 Thread Brendan Hide
On 2013/02/14 09:53 AM, Tsutomu Itoh wrote: + if (ret 0) { + fprintf(stderr, error checking %s status: %s\n, file, + strerror(-ret)); + exit(1); + } ... + /* check if the device

Re: [PATCH v3] Btrfs-progs: check out if the swap device

2013-02-14 Thread David Sterba
On Thu, Feb 14, 2013 at 04:53:04PM +0900, Tsutomu Itoh wrote: Signed-off-by: Tsutomu Itoh t-i...@jp.fujitsu.com Worked for me here in these situations (ie. mkfs failed, filenames specified given as simple path or with mixture of ./ and ../ leading to the device): * mounted /dev/sdx * /dev/sdx