hi Roy,
On Tue, Dec 04, 2001 at 05:45:35PM +0100, Roy Sigurd Karlsbakk wrote:
> hi all
>
> I'm trying to make a real-time filesystem for testing purposes onto a
> single disk. (yes - I know it's silly, but it's only for testing).
>
> I'm trying to do this on one drive with two partitions, and it all messes
> up. see below for more info.
>
> roy
>
> --
> from /proc/partitions
> major minor #blocks name
> 3 69 19277937 hdb5
> 3 70 730926 hdb6
> --
> # mkfs.xfs -f -r extsize=4m,rtdev=/dev/hdb5 /dev/hdb6
> meta-data=/dev/hdb6 isize=256 agcount=8, agsize=22842 blks
> data = bsize=4096 blocks=182731, imaxpct=25
> = sunit=0 swidth=0 blks, unwritten=0
> = imaxbits=0
> naming =version 2 bsize=4096
> log =internal log bsize=4096 blocks=1200
> realtime =/dev/hdb5 extsz=4194304 blocks=4819484,
> rtextents=4706
> mkfs.xfs: lseek64 to 19740605952 failed: Invalid argument
>
> but...
>
> # mkfs.xfs -f -r extsize=4m,rtdev=/dev/hdb6 /dev/hdb5
>
> works fine... ? que?
>
This is a bug in Linux mkfs.xfs where it is checking the size
of the device - the code is currently incorrecly inspecting the
data device instead of the realtime device here, so the lseek
fails if the data device is smaller than the realtime device.
I'll get a fix in shortly -- thanks for reporting the problem.
cheers.
--
Nathan
|