[Filesystems-devel] Bug#881346: f2fs-tools: mkfs.f2fs fails with inapropriate error message on small blocks

Benoît-Pierre DEMAINE benoit at demaine.info
Fri Nov 10 15:36:33 UTC 2017


Package: f2fs-tools
Version: 1.4.0-2
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

mkfs fails on 100MB, but works on 1GB. Really sounds like there is a
minimal size. Even if my interpretation is wrong, Failed to prepare a
super block ... is not an intructive error message.

There exist FLASH devices down to 8MB; the DOC2000 was a very famous chip
with 32MB.

The goal of the day was only to check if my kernel supported F2FS (if I
could mount a block); I guess some people may want to use F2FS on old and
small devices.

# dd if=/dev/zero of=fff bs=1024 count=102400
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 2.95282 s, 35.5 MB/s

# mkfs.f2fs fff
        F2FS-tools: mkfs.f2fs Ver: 1.4.0 (2014-09-18)
Info: sector size = 512
Info: total sectors = 204800 (in 512bytes)
Info: zone aligned segment0 blkaddr: 512
        Error: Failed to prepare a super block!!!
        Error: Could not format the device!!!

# dd if=/dev/zero of=fff bs=1024 count=1024000
1024000+0 records in
1024000+0 records out
1048576000 bytes (1.0 GB) copied, 48.8232 s, 21.5 MB/s

# mkfs.f2fs fff
        F2FS-tools: mkfs.f2fs Ver: 1.4.0 (2014-09-18)
Info: sector size = 512
Info: total sectors = 2048000 (in 512bytes)
Info: zone aligned segment0 blkaddr: 512
Info: Discarding device
Info: format successful



*** End of the template - remove these template lines ***


-- System Information:
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:        8.0
Codename:       jessie
Architecture: armv7l

Kernel: Linux 4.4.48-v7+ (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages f2fs-tools depends on:
ii  libc6     2.19-18+deb8u7
ii  libuuid1  2.25.2-6

f2fs-tools recommends no packages.

f2fs-tools suggests no packages.

-- no debconf information

-- 
 >o_/ DEMAINE Benoît-Pierre (aka DoubleHP) http://benoit.demaine.info/
If computing were an exact science, IT engineers would'nt have work \_o<

"So all that's left, Is the proof that love's not only blind but deaf."
(FAKE TALES OF SAN FRANCISCO, Arctic Monkeys)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/filesystems-devel/attachments/20171110/418f25ee/attachment.html>


More information about the Filesystems-devel mailing list