Re: [PATCH] mkfs.minix: check for misalignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 20, 2011 at 11:11:46PM -0400, Davidlohr Bueso wrote:
>  disk-utils/mkfs.minix.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)

 Applied with a small change, thanks.

> @@ -653,6 +653,11 @@ int main(int argc, char ** argv) {
>  		DEV = open(device_name,O_RDWR | O_EXCL);
>  	else
>  		DEV = open(device_name,O_RDWR);
> +
> +	if (blkdev_is_misaligned(DEV))
> +		warnx(_("warning: %s is misaligned"), device_name);

 It makes sense for block devices only.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux