On my disk, I have an odd(not multiple of 4K)
number of sectors. There are
3104561 4K blocks or 12418245 1K blocks and
mke2fs /dev/x -b 1024
fails with message
"...resulted in short write at block 12418240.."
When it tried to write 5120 bytes, only 4096 bytes
That is due to blksize_size array.
mount sets the field with 4096 and the last
sector became inaccessible in mke2fs.
When I tried after ioctl(.., BLKBSGSET, 1024),
mke2fs did work properly.
So should mke2fs use ioctl to set the block
or use get last sector ioctl?
Or is setting that back in umount a proper fix?
If anyone has faced this or is it well known,
please let me know.
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:21 EST