* libblkid fails to detect not-so-big OCFS2 filesystems @ 2012-01-27 17:18 Rogier Goossens 2012-01-30 12:26 ` Karel Zak 0 siblings, 1 reply; 4+ messages in thread From: Rogier Goossens @ 2012-01-27 17:18 UTC (permalink / raw) To: util-linux 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libblkid fails to detect not-so-big OCFS2 filesystems 2012-01-27 17:18 libblkid fails to detect not-so-big OCFS2 filesystems Rogier Goossens @ 2012-01-30 12:26 ` Karel Zak 2012-02-07 12:01 ` Rogier Goossens 0 siblings, 1 reply; 4+ messages in thread From: Karel Zak @ 2012-01-30 12:26 UTC (permalink / raw) To: Rogier Goossens; +Cc: util-linux On Fri, Jan 27, 2012 at 06:18:18PM +0100, Rogier Goossens wrote: > 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. > 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 -- Karel Zak <kzak@redhat.com> http://karelzak.blogspot.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libblkid fails to detect not-so-big OCFS2 filesystems 2012-01-30 12:26 ` Karel Zak @ 2012-02-07 12:01 ` Rogier Goossens 2012-02-08 10:59 ` Karel Zak 0 siblings, 1 reply; 4+ messages in thread From: Rogier Goossens @ 2012-02-07 12:01 UTC (permalink / raw) To: util-linux Hi, > On Fri, Jan 27, 2012 at 06:18:18PM +0100, Rogier Goossens wrote: > > 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. > > > 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libblkid fails to detect not-so-big OCFS2 filesystems 2012-02-07 12:01 ` Rogier Goossens @ 2012-02-08 10:59 ` Karel Zak 0 siblings, 0 replies; 4+ messages in thread From: Karel Zak @ 2012-02-08 10:59 UTC (permalink / raw) To: Rogier Goossens; +Cc: util-linux On Tue, Feb 07, 2012 at 01:01:02PM +0100, Rogier Goossens wrote: > BTRFS: > A suitable minimum device size for btrfs therefore seems to be 1MB. [...] > REISERFS: > although in practise, a device smaller than 128KB would cause problems > with mkfs and fsck. Fixed. Thanks! Karel -- Karel Zak <kzak@redhat.com> http://karelzak.blogspot.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-08 10:59 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-01-27 17:18 libblkid fails to detect not-so-big OCFS2 filesystems Rogier Goossens 2012-01-30 12:26 ` Karel Zak 2012-02-07 12:01 ` Rogier Goossens 2012-02-08 10:59 ` Karel Zak
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox