[PATCH] btrfs-progs: print errno string when /dev/btrfs-control open fails

2013-03-13 Thread Anand Jain
Of recently and intermittently I am seeing open fail for /dev/btrfs-control (btrfs is loaded), and there are no dmesg errors, this may not be a complete help in digging this issue but something which is necessary. Thanks Signed-off-by: Anand Jain --- utils.c | 3 ++- 1 file changed, 2 insertions

Re: [PATCH] btrfs-progs: print errno string when /dev/btrfs-control open fails

2013-03-14 Thread David Sterba
On Thu, Mar 14, 2013 at 11:17:19AM +0800, Anand Jain wrote: > fprintf(stderr, "failed to open /dev/btrfs-control " > - "skipping device registration\n"); > + "%s, skipping device registration\n", > + strerror(errno)); I thin

Re: [PATCH] btrfs-progs: print errno string when /dev/btrfs-control open fails

2013-03-14 Thread Anand Jain
I think the common pattern here is that error details follow the message, like + "skipping device registration: %s\n", I'll fix it here, if you don't mind. Pls do. Thanks David. -Anand -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the bo