linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mke2fs accepts block size not mentioned in its man page
@ 2019-07-05  5:35 Qu Wenruo
  2019-08-09  1:00 ` Darrick J. Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Qu Wenruo @ 2019-07-05  5:35 UTC (permalink / raw)
  To: linux-ext4; +Cc: linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 842 bytes --]

Hi,

Just doing some tests on aarch64 with 64K page size.

Man page of mke2fs only mentions 3 valid block size: 1k, 2k, 4k.
But in real world, we can pass 64K as block size for it without any problem:

  $mke2fs -F -t ext3 -b 65536 /dev/loop1
  Warning: blocksize 65536 not usable on most systems.
  mke2fs 1.45.2 (27-May-2019)
  /dev/loop1 contains a btrfs file system
  Discarding device blocks: done
  Creating filesystem with 81920 64k blocks and 81920 inodes
  Filesystem UUID: 311bb224-6d2d-44a7-9790-92c4878d6549
  [...]

It's great to see mke2fs accepts 64K as nodesize, which allows
btrfs-convert to work.
(If blocksize is default to 4K or doesn't accept 64K page size,
btrfs-convert can work but can't be mounted on system with 64K page size)

Shouldn't the man page mention all valid values?

Thanks,
Qu


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-09  1:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-05  5:35 mke2fs accepts block size not mentioned in its man page Qu Wenruo
2019-08-09  1:00 ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).