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
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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.

---CODE
mkfs.hfs:
#!/bin/sh
newfs_hfs -h $@
---/CODE

Is the qualitiy of this script okay?