public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: Terje Eggestad <terje.eggestad@scali.no>
Cc: linux-kernel@vger.kernel.org
Subject: Re: confused about raw-io blocksizes
Date: Fri, 9 Nov 2001 17:13:11 -0700	[thread overview]
Message-ID: <20011109171311.J1778@lynx.no> (raw)
In-Reply-To: <Pine.LNX.4.30.0111092333100.24890-100000@elin.scali.no>
In-Reply-To: <Pine.LNX.4.30.0111092333100.24890-100000@elin.scali.no>; from terje.eggestad@scali.no on Sat, Nov 10, 2001 at 12:52:47AM +0100

On Nov 10, 2001  00:52 +0100, Terje Eggestad wrote:
> I'm curious as to what sets the smallest legal blocksize for raw-io, I
> get different values for different partitions on the same disk drive.
> 
> In all my tests I've used
> raw /dev/raw/raw2 <block speclial file>
> and to test block size:
> dd if=/dev/raw/raw2 of=/dev/null bs=N count=1
> where N is either 512, 1024, or 4096.
> (I've a RH7.1 with a dd that do propper buffer alignment)
> Failure is always "invalid argument" which singify either misaligned
> buffer or illegal read length.
> 
> What confuses me is that when raw2 is bound to /dev/hda bs=512 is ok.
> However when binding raw2 to the different partitions on /dev/hda, some
> are ok with 512, some will only accept 1024, and one required 4096.

It may be getting confused with the filesystem blocksize.  Check tune2fs -l
for those devices.

> When creating an lvm vg on one partition (/dev/hda6), and I've created
> two logical volumes on it, one was ok with 1024 and the other required
> 4096. When binding a raw to /dev/hda6 dd with bs=512 was ok.

LVM is broken in this regard, unless you have a recent patch (Linus'
kernel does not).  I sent him a patch to fix that, but it did not get in.

What kernel version/LVM do you have?  Are you using LVM on all of these
partitions, or only some?  Did you have filesystems on them? 

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


  reply	other threads:[~2001-11-10  0:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-09 23:52 confused about raw-io blocksizes Terje Eggestad
2001-11-10  0:13 ` Andreas Dilger [this message]
2001-11-10 11:55   ` Terje Eggestad
2001-11-11  0:57     ` Andreas Dilger

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=20011109171311.J1778@lynx.no \
    --to=adilger@turbolabs.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=terje.eggestad@scali.no \
    /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