Skip to contentSkip to conversation

Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

DISCUSSION David Luyer 3 participants 4 messages Jul 25, 2002 – Jul 26, 2002

lore
Share & tools
lore
#0 lore raw

Followup to my own post:

Quoted 3 lines

I attempted to mkfs and use a whole disk rather than a partition with reiserfs. It failed (not a major problem, I'll just make a partition), but it failed with a "kernel BUG" message, so here 'tis.

[...]

Quoted 3 lines

Original commands to cause failure:
mkfs -b 8192 /dev/sdb -f
mount /dev/sdb /cache

Actually looks like the -b 8192 was the problem, the same happened on /dev/sdb1. Had to reboot again after that as mount was hanging in the same way as cfdisk had previously. Similar 'kernel BUG' message resulted.

David.

#1 lore raw
Quoted 4 lines · David Luyer

Followup to my own post:

Quoted 3 lines

I attempted to mkfs and use a whole disk rather than a partition with reiserfs. It failed (not a major problem, I'll just make a partition), but it failed with a "kernel BUG" message, so here 'tis.

It was this BUG no doubt (buffer.c):

2398 /* Size must be within 512 bytes and PAGE_SIZE */
2399 if (size < 512 || size > PAGE_SIZE)
2400 BUG();

Quoted 8 lines
Quoted 3 lines

Original commands to cause failure:
mkfs -b 8192 /dev/sdb -f
mount /dev/sdb /cache

Actually looks like the -b 8192 was the problem, the same happened on /dev/sdb1. Had to reboot again after that as mount was hanging in the same way as cfdisk had previously. Similar 'kernel BUG' message resulted.

It's Reiserfs's fault all right, for not recognizing the fact that the kernel can't handle blocksize larger than the hard PAGE_SIZE. Good thing the BUG is there now, it used to fail silently.

There is no fundamental reason why we can't handled the larger blocksizes. It just didn't make it to the top of the list of things to do for this cycle. For now, all the mkfs's have to accomodate this shortcoming.

Signature · 1 line
Daniel
#2 lore raw
Quoted 4 lines · On Friday 26 July 2002 07:33, I wrote:

There is no fundamental reason why we can't handle the larger blocksizes. It just didn't make it to the top of the list of things to do for this cycle. For now, all the mkfs's have to accomodate this shortcoming.

Whoops, correction, the correct behaviour is to refuse to mount a filesystem that has oversize blocks. Mkfs can and should go ahead and create such things if asked to.

Signature · 1 line
Daniel
#3 lore raw
In reply to David Luyer

Hello!

Quoted 7 lines · David Luyer
Quoted 3 lines

Original commands to cause failure:
mkfs -b 8192 /dev/sdb -f
mount /dev/sdb /cache

Actually looks like the -b 8192 was the problem, the same happened on /dev/sdb1. Had to reboot again after that as mount was hanging in the same way as cfdisk had previously. Similar 'kernel BUG' message resulted.

Linux kernel 2.4 reiserfs implementation lacks support for blocksizes different from 4096 bytes, we plan to merge it in after 2.4.19 is out. It have all the checks needed not to allow you to mount such volumes with too big blocksizes.

Bye,
Oleg