Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571434 - sys-fs/diskdev_cmds: mkfs.hfs creates hfsplus filesystem by default
Summary: sys-fs/diskdev_cmds: mkfs.hfs creates hfsplus filesystem by default
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2016-01-10 01:49 UTC by Andreas Thalhammer
Modified: 2021-07-02 07:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Thalhammer 2016-01-10 01:49:07 UTC
I've tested sys-fs/diskdev_cmds on ppc64 (keyword missing at the time of this report, but builds and runs anyway).
fsck.hfs and fsck.hfsplus are symlinks to fsck_hfs. This works as expected.
mkfs.hfs and mkfs.hfsplus are symlinks to newfs_hfs.

Running mkfs.hfsplus will create a hfsplus file system as expected. But running mkfs.hfs will also default to creating a hfsplus file system. It is required to add -h as a parameter, which is unexpected given the fact that mkfs.hfs should default to hfs due to its name.

Is there a way to patch nfsfs_hfs to check by which name (symlink) it was invoked and default to hfs should it be run as mkfs.hfs?
Comment 1 Andreas Thalhammer 2016-01-13 10:32:00 UTC
On second thought, the easy way to fix this is to add a mini shell script that will simply run newfs_hfs -h.

newfs_hfs -h $@

Is the qualitiy of this script okay?