]> err.no Git - util-linux/commit
mkfs.minix: add sectorsize check
authorMatthias Koenig <mkoenig@suse.de>
Tue, 13 Nov 2007 15:28:38 +0000 (16:28 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 21 Nov 2007 01:35:00 +0000 (02:35 +0100)
commita28a3ad26de38d13eadd63836494e72cba85c260
tree577680cc097d4e2f50b661d65224f0de3c2e6a81
parent313c2fbe1fd5864ddaf78d1d253b0581aaaa2188
mkfs.minix: add sectorsize check

Minix filesystem until version 2 has a fixed blocksize of 1024 bytes.
If you try to create a filsystem on a device with a physical sectorsize
larger than 1024 bytes, this resulting minix fs cannot be mounted,
because the physical sectorsize must be smaller than the filesystem
blocksize.
This patch adds a check for this and will refuse to create a filesystem
if the sectorsize is bigger than the blocksize.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
disk-utils/Makefile.am
disk-utils/mkfs.minix.c