Re: [HFS] generic/740 failure details

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Slava and Adrian,

在 2025/6/6 06:41, Viacheslav Dubeyko 写道:
Hi Adrian, Yangtao,

We have failure for generic/740 test:

./check generic/740
FSTYP         -- hfs
PLATFORM      -- Linux/x86_64 hfsplus-testing-0001 6.15.0-rc4+ #8 SMP
PREEMPT_DYNAMIC Thu May  1 16:43:22 PDT 2025
MKFS_OPTIONS  -- /dev/loop51
MOUNT_OPTIONS -- /dev/loop51 /mnt/scratch

generic/740       - output mismatch (see /home/slavad/XFSTESTS-2/xfstests-
dev/results//generic/740.out.bad)
     --- tests/generic/740.out	2025-04-24 12:48:45.964286739 -0700
     +++ /home/slavad/XFSTESTS-2/xfstests-
dev/results//generic/740.out.bad	2025-06-05 15:25:18.071217224 -0700
     @@ -1,2 +1,16 @@
      QA output created by 740
      Silence is golden.
     +Failed - overwrote fs type bfs!
     +Failed - overwrote fs type cramfs!
     +Failed - overwrote fs type exfat!
     +Failed - overwrote fs type ext2!
     +Failed - overwrote fs type ext3!
     ...
     (Run 'diff -u /home/slavad/XFSTESTS-2/xfstests-dev/tests/generic/740.out
/home/slavad/XFSTESTS-2/xfstests-dev/results//generic/740.out.bad'  to see the
entire diff)
Ran: generic/740
Failures: generic/740
Failed 1 of 1 tests

As far as I can see, the workflow of the test is to reformat the existing file
system by using the forcing option of mkfs tool (for example, -F of mkfs.ext4).
And, then, it tries to reformat the partition with existing file system (ext4,
xfs, btrfs, etc) by HFS/HFS+ mkfs tool with default option. By default, it is
expected that mkfs tool should refuse the reformat of partition with existing
file system. However, HFS/HFS+ mkfs tool easily reformat the partition without
any concerns or questions:

sudo mkfs.ext4 /dev/loop51
mke2fs 1.47.0 (5-Feb-2023)
/dev/loop51 contains a hfs file system labelled 'untitled'
Proceed anyway? (y,N) n

sudo mkfs.ext4 -F /dev/loop51
mke2fs 1.47.0 (5-Feb-2023)
/dev/loop51 contains a hfs file system labelled 'untitled'
Discarding device blocks: done
Creating filesystem with 2621440 4k blocks and 655360 inodes
Filesystem UUID: 2b65062e-d8d5-4731-9f3d-dddcf1aa73ee
Superblock backups stored on blocks:
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

sudo mkfs.hfs /dev/loop51
Initialized /dev/loop51 as a 10240 MB HFS volume

It looks like we need to modify the HFS/HFS+ mkfs tool to refuse the reformat of
existing file system and to add the forcing option.

I wonder if this is a good time to reimplement hfs-progs in rust.

Thx,
Yangtao




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux