* Odd size mke2fs
@ 2002-08-20 21:09 M.L.PrasannaK.R.
0 siblings, 0 replies; only message in thread
From: M.L.PrasannaK.R. @ 2002-08-20 21:09 UTC (permalink / raw)
To: linux-kernel
Hi,
On my disk, I have an odd(not multiple of 4K)
number of sectors. There are
3104561 4K blocks or 12418245 1K blocks and
24836490 sectors.
mke2fs /dev/x
mount
umount
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
are written.
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.
Thanks,
Prasanna.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-20 21:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-20 21:09 Odd size mke2fs M.L.PrasannaK.R.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®