All of lore.kernel.org
 help / color / mirror / Atom feed
* Mkfs.f2fs on null_blk device
@ 2022-11-01  4:09 ` Sijie Lan
  0 siblings, 0 replies; 4+ messages in thread
From: Sijie Lan @ 2022-11-01  4:09 UTC (permalink / raw)
  To: linux-kernel, linux-f2fs-devel, kernel-team; +Cc: chao

When I try to make f2fs on null_blk device, it always shows "Device
size is not sufficient for F2FS volume",
I am I gave enough space for the file system, i.e, 20GiB. I just want
to know hot to fix it.
this is the output message:
[sijie@fedora null_blk]$ sudo mkfs.f2fs -f -m  /dev/nullb1

    F2FS-tools: mkfs.f2fs Ver: 1.15.0 (2022-05-13)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
Info: Host-managed zoned block device:
      20 zones, 2147483648 zone size(bytes), 10 randomly writeable zones
      524288 blocks per zone
Info: Segments per section = 1024
Info: Sections per zone = 1
Info: sector size = 4096
Info: total sectors = 10485760 (40960 MB)
Info: zone aligned segment0 blkaddr: 524288
Error: Device size is not sufficient for F2FS volume
Error: Failed to prepare a super block!!!
Error: Could not format the device!!!

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

* [f2fs-dev] Mkfs.f2fs on null_blk device
@ 2022-11-01  4:09 ` Sijie Lan
  0 siblings, 0 replies; 4+ messages in thread
From: Sijie Lan @ 2022-11-01  4:09 UTC (permalink / raw)
  To: linux-kernel, linux-f2fs-devel, kernel-team

When I try to make f2fs on null_blk device, it always shows "Device
size is not sufficient for F2FS volume",
I am I gave enough space for the file system, i.e, 20GiB. I just want
to know hot to fix it.
this is the output message:
[sijie@fedora null_blk]$ sudo mkfs.f2fs -f -m  /dev/nullb1

    F2FS-tools: mkfs.f2fs Ver: 1.15.0 (2022-05-13)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
Info: Host-managed zoned block device:
      20 zones, 2147483648 zone size(bytes), 10 randomly writeable zones
      524288 blocks per zone
Info: Segments per section = 1024
Info: Sections per zone = 1
Info: sector size = 4096
Info: total sectors = 10485760 (40960 MB)
Info: zone aligned segment0 blkaddr: 524288
Error: Device size is not sufficient for F2FS volume
Error: Failed to prepare a super block!!!
Error: Could not format the device!!!


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

* Re: [f2fs-dev] Mkfs.f2fs on null_blk device
  2022-11-01  4:09 ` [f2fs-dev] " Sijie Lan
@ 2022-11-01  6:38   ` Shinichiro Kawasaki via Linux-f2fs-devel
  -1 siblings, 0 replies; 4+ messages in thread
From: Shinichiro Kawasaki @ 2022-11-01  6:38 UTC (permalink / raw)
  To: Sijie Lan; +Cc: linux-kernel, linux-f2fs-devel, kernel-team

On Nov 01, 2022 / 00:09, Sijie Lan wrote:

...

> Info: Host-managed zoned block device:
>       20 zones, 2147483648 zone size(bytes), 10 randomly writeable zones

When zone size is large comparing to device size, reserved area size tend to be
large and results in the failure. Can you try with smaller zone size, such as
128MB or 64MB?

-- 
Shin'ichiro Kawasaki

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

* Re: [f2fs-dev] Mkfs.f2fs on null_blk device
@ 2022-11-01  6:38   ` Shinichiro Kawasaki via Linux-f2fs-devel
  0 siblings, 0 replies; 4+ messages in thread
From: Shinichiro Kawasaki via Linux-f2fs-devel @ 2022-11-01  6:38 UTC (permalink / raw)
  To: Sijie Lan; +Cc: kernel-team, linux-kernel, linux-f2fs-devel

On Nov 01, 2022 / 00:09, Sijie Lan wrote:

...

> Info: Host-managed zoned block device:
>       20 zones, 2147483648 zone size(bytes), 10 randomly writeable zones

When zone size is large comparing to device size, reserved area size tend to be
large and results in the failure. Can you try with smaller zone size, such as
128MB or 64MB?

-- 
Shin'ichiro Kawasaki

_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

end of thread, other threads:[~2022-11-01  6:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-01  4:09 Mkfs.f2fs on null_blk device Sijie Lan
2022-11-01  4:09 ` [f2fs-dev] " Sijie Lan
2022-11-01  6:38 ` Shinichiro Kawasaki
2022-11-01  6:38   ` Shinichiro Kawasaki via Linux-f2fs-devel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.