xfs
[Top] [All Lists]

"Invalid block length" warning with small blocksize

To: xfs@xxxxxxxxxxx
Subject: "Invalid block length" warning with small blocksize
From: Pavol Gono <Pavol.Gono@xxxxxxxxxxx>
Date: Fri, 01 Apr 2011 12:13:55 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.16) Gecko/20101125 Thunderbird/3.0.11
Hi

I am getting this warning in kernel log:
XFS: Invalid block length (0x2000) given for buffer
during mount, and I don't know if this can be safely ignored or not.

It happens only if I formatted XFS with block size smaller than 4k.
And I experienced it only in my virtual machine (using VirtualBox). I have tested it on two physical servers and it didn't happen.

OS is SLES11 SP1 64-bit.

partbox:~ # uname -a
Linux partbox 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux
partbox:~ # fdisk -l

Disk /dev/sda: 34.4 GB, 34359738368 bytes
255 heads, 63 sectors/track, 4177 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00074280

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1305    10482381   83  Linux
/dev/sda2            1306        1435     1044225   83  Linux
/dev/sda3            1436        4177    22025115    f  W95 Ext'd (LBA)
/dev/sda5            1436        1467      257008+  82  Linux swap / Solaris
/dev/sda6            1468        1728     2096451   83  Linux
/dev/sda7            1729        1793      522081   83  Linux
/dev/sda8            1794        4177    19149448+  83  Linux
partbox:~ # mkfs.xfs -f -b size=4k /dev/sda2
meta-data=/dev/sda2              isize=256    agcount=4, agsize=65264 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=261056, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=1200, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
partbox:~ # mount /dev/sda2 /opt
partbox:~ # dmesg | tail -2
[  484.331102] XFS mounting filesystem sda2
[  484.334071] Ending clean XFS mount for filesystem: sda2
partbox:~ # umount /dev/sda2
partbox:~ # mkfs.xfs -f -b size=2k /dev/sda2
meta-data=/dev/sda2              isize=256    agcount=4, agsize=130528 blks
         =                       sectsz=512   attr=2
data     =                       bsize=2048   blocks=522112, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=2048   blocks=1728, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
partbox:~ # mount /dev/sda2 /opt
partbox:~ # dmesg | tail -3
[  560.534120] XFS mounting filesystem sda2
[  560.537462] XFS: Invalid block length (0x2000) given for buffer
[  560.542101] Ending clean XFS mount for filesystem: sda2
partbox:~ #


Pavol Gono

<Prev in Thread] Current Thread [Next in Thread>