From: "M.L.PrasannaK.R." <mlpkr@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Odd size mke2fs
Date: Tue, 20 Aug 2002 14:09:57 -0700 (PDT) [thread overview]
Message-ID: <20020820210957.90917.qmail@web13804.mail.yahoo.com> (raw)
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
reply other threads:[~2002-08-20 21:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020820210957.90917.qmail@web13804.mail.yahoo.com \
--to=mlpkr@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®