diff options
author | Miles Bader <miles@gnu.org> | 1995-04-16 23:51:03 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-16 23:51:03 +0000 |
commit | 943703d65b330e63d2443b6fac5d46e6829d0b2c (patch) | |
tree | 15209473a604cdef03921294118af1f7554dbb77 /ext2fs | |
parent | d0d65905ff00616e9f2731bf240134b54f8a8593 (diff) |
Formerly ext2fs.c.~11~
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/ext2fs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 2750f4d0..84c68091 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -227,10 +227,8 @@ main (int argc, char **argv) /* Check to make sure device sector size is reasonable. */ err = device_get_status (device_port, DEV_GET_SIZE, sizes, &sizescnt); assert (sizescnt == DEV_GET_SIZE_COUNT); - if (sizes[DEV_GET_SIZE_RECORD_SIZE] != DEV_BSIZE) - error(1, 0, "Bad device record size %d (should be %d)\n", - sizes[DEV_GET_SIZE_RECORD_SIZE], DEV_BSIZE); - + + device_block_size = sizes[DEV_GET_SIZE_RECORD_SIZE]; device_size = sizes[DEV_GET_SIZE_DEVICE_SIZE]; assert (device_size >= SBLOCK_OFFS + SBLOCK_SIZE); |