libblkid fails to detect not-so-big OCFS2 filesystems
Hi,
While testing KDE partitionmanager, I discovered that blkid did not detect the test OCFS2 filesystem I created. After some investigation, it appeared that it will assume the filesystem cannot be OCFS2 if smaller than 108M. However, mkfs.ocfs2 from ocfs2-tools (1.6.3) will happily create filesystems that are much smaller, only failing below approx. 15000 1k blocks, and below approx. 6000 4k blocks.
Kind regards,
Rogier.
Karel Zak
maintainerQuoted 3 lines · Rogier Goossens
While testing KDE partitionmanager, I discovered that blkid did not detect the test OCFS2 filesystem I created. After some investigation, it appeared that it will assume the filesystem cannot be OCFS2 if
yes, we don't want to probe for some filesystems on very small devices.
Quoted 3 lines
smaller than 108M. However, mkfs.ocfs2 from ocfs2-tools (1.6.3) will happily create filesystems that are much smaller, only failing below approx. 15000 1k blocks, and below approx. 6000 4k blocks.
OK, fixed ... the new limit is 14000 * 1024.
Thanks!
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Hi,
Quoted 9 lines · Rogier Goossens
Quoted 4 lines
While testing KDE partitionmanager, I discovered that blkid did not detect the test OCFS2 filesystem I created. After some investigation, it appeared that it will assume the filesystem cannot be OCFS2 if
yes, we don't want to probe for some filesystems on very small devices.
Quoted 6 lines
Quoted 4 lines
smaller than 108M. However, mkfs.ocfs2 from ocfs2-tools (1.6.3) will happily create filesystems that are much smaller, only failing below approx. 15000 1k blocks, and below approx. 6000 4k blocks.
OK, fixed ... the new limit is 14000 * 1024.
Thanks for fixing !
I did some more testing for other filesystems as well, and I found the following:
BTRFS:
The current minimum size is 256MB
While the mkfs.btrfs refuses to create filesystems smaller than 256MB, they may span multiple smaller devices/partitions. In addition, after creation, devices can be removed to make the filesystem size smaller than 256MB.
While experimenting with different device sizes, I found that a 2MB device could still be included in a btrfs filesystem, but including an 1MB device failed.
A suitable minimum device size for btrfs therefore seems to be 1MB.
REISERFS:
The current minimum size is 4096 * 512.
My tests indicate that the minimum size of the journal is actually 4096*513 (2052KB), and that mkfs.reiserfs needs at least 2176KB to create a filesystem with included journal.
When the journal is on a separate device, the smallest filesystem size I managed to create was 19*4096 (76KB) - which is 100% overhead and no free blocks :-). Some trickery is needed though, because device sizes less than 128KB trigger an assertion in mkfs.reiserfs and fsck.reiserfs.
An absolute minimum device size for reiserfs is therefore 76KB, although in practise, a device smaller than 128KB would cause problems with mkfs and fsck.
I verified JFS as well, and the current minimum size is OK.
Regards,
Rogier.
Karel Zak
maintainerQuoted 2 lines · Rogier Goossens
BTRFS:
A suitable minimum device size for btrfs therefore seems to be 1MB.
[...]
Quoted 3 lines
REISERFS:
although in practise, a device smaller than 128KB would cause problems with mkfs and fsck.
Fixed. Thanks!
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com