[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] blkdiscard: new applet
From:       Aaro Koskinen <aaro.koskinen () iki ! fi>
Date:       2015-11-27 21:58:15
Message-ID: 20151127215815.GM18138 () blackmetal ! musicnaut ! iki ! fi
[Download RAW message or body]

Hi,

On Fri, Nov 27, 2015 at 10:09:47PM +0200, Ari Sundholm wrote:
> +	if (!S_ISBLK(st.st_mode))
> +		bb_error_msg_and_die("%s is not a block device!", argv[optind]);

$ git grep -A1 '!S_ISBLK' | grep bb_error_msg
util-linux/fdformat.c-          bb_error_msg_and_die("%s: not a block device", *argv);
util-linux/mkfs_ext2.c-         bb_error_msg_and_die("%s: not a block device", argv[0]);
util-linux/mkfs_reiser.c-               bb_error_msg_and_die("%s: not a block device", argv[0]);

A.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic