[Bug 1978323] Re: cmsfs-fuse fails to mount file systems on Ubuntu 22.04 with error unknown option(s): '-o hard_remove'
Launchpad Bug Tracker
1978323 at bugs.launchpad.net
Tue Jul 5 20:35:13 UTC 2022
This bug was fixed in the package s390-tools - 2.20.0-0ubuntu3.1
---------------
s390-tools (2.20.0-0ubuntu3.1) jammy; urgency=medium
* Fix chreipl-fcp-mpath (LP: #1971993)
- Move chreipl-fcp-mpath* from /lib/udev/rules.d to /lib/udev.
- d/control:
+ Build-Depend on bsdextrautils for hexdump
+ Add multiple explicit Depends on udev
+ s390-tools-chreipl-fcp-mpath: drop unnecessary Depends on lvm2
- No longer change attributes of chreipl-fcp-mpath-common.sh to 755,
since only the input script '.in' has a she-bang, but not the '.sh'
anymore (was done with commit c2f8988).
- Add d/p/0d15a07-chreipl-fcp-mpath-bundle-a-pre-cooked-man-page.patch
to bundle a pre-cooked version of the man page for chreipl-fcp-mpath
Required minor context adjustment for CHANGELOG.md hunk
and changes in d/rules.
- Add missing README.md to s390-tools-chreipl-fcp-mpath.doc
(and with that also the README.md for genprotimg to s390-tools.docs).
* Add new CPU-MF Counters for new IBM Z hardware (LP: #1960119) by:
- d/p/2515832-util_arch-Add-IBM-z16-as-known-machine.patch and
- d/p/cce5f51-cpumf-lscpumf-Add-IBM-z16-extended-counter-set-def.patch
* Add exploitation support of new IBM Z crypto hardware (LP: #1959548) with:
- d/p/b16a6d4f-lszcrypt-add-CEX8S-support.patch
- d/p/bcbb6fca-zcryptstats-add-CEX8-support.patch
- d/p/4382901d-lszcrypt-show-AP-bus-msg-size-limit-capability.patch
- d/p/27dce331-lszcrypt-add-support-for-checkstop-state.patch
- d/p/a29b3c89-lszcrypt-new-options-to-show-only-accel-cca-or-ep11-.patch
- d/p/a8b0d7ac-lszcrypt-new-options-to-filter-cards-queues-only.patch
- d/p/46fd42af-lszcrypt-new-option-to-show-the-serial-numbers-of-CC.patch
* Stabilization of data collection in dbginfo.sh script (LP: #1971959)
by adding several upstream patches:
- d/p/*-dbginfo.sh-*.patch
- whereas one needed minor context adjutment for the CHANGELOG.md hunk:
d/p/50a4740-dbginfo.sh-replace-which-by-builtin-command-type-for.patch
* Fix cmsfs-fuse mount failure due to unknown option '-o hard_remove'
(LP: #1978323) with:
d/p/0981df6-cmsfs-fuse-fix-enabling-of-hard_remove-option.patch
-- Frank Heimes <frank.heimes at canonical.com> Fri, 20 May 2022 13:48:34
+0200
** Changed in: s390-tools (Ubuntu Jammy)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-tools-signed in Ubuntu.
https://bugs.launchpad.net/bugs/1978323
Title:
cmsfs-fuse fails to mount file systems on Ubuntu 22.04 with error
unknown option(s): '-o hard_remove'
Status in Ubuntu on IBM z Systems:
Fix Committed
Status in s390-tools package in Ubuntu:
Fix Released
Status in s390-tools-signed package in Ubuntu:
Fix Committed
Status in s390-tools source package in Jammy:
Fix Released
Status in s390-tools-signed source package in Jammy:
Fix Committed
Status in s390-tools source package in Kinetic:
Fix Released
Status in s390-tools-signed source package in Kinetic:
Fix Committed
Bug description:
SRU Justification:
==================
[Impact]
* The cmsfs-fuse utility, that is part of the s390-tools,
allows to mount z/VM (IBMs commercial hypervisor for IBM Z systems)
CMS disks.
* cmsfs-fuse (prior to the migration to fuse3) could use the
'hard_remove' option without any problem - and it was the default.
* While migrating to fuse3 all tools were adjusted,
but it wasn't identified that the 'hard_remove' no longer works
with fuse3 (only)..
* Hence if one uses cmsfs-fuse on Ubuntu 22.04, the utility will
fails with error "fuse: unknown option(s): '-o hard_remove'".
* The option '-o hard_remove' is (for whatever reason) hard coded.
[Fix]
* upstream commit 0981df62c05e71123bc14483bba347f17aafa59a "cmsfs-
fuse: fix enabling of hard_remove option"
[Test Plan]
* Setup an Ubuntu 22.04 instance on the z/VM hypervisor
and make sure the guest aware of at least one CMS formatted z/VM disk.
* The cmsfs-fuse utility is part of the s390-tools package,
which is mandatory for an Ubuntu on IBM Z Installation,
so everything is installed and available with a default installation.
* This disk needs to be defined in the z/VM guests 'user direct',
which is actually the guest aka virtual machine definition as minidisk,
like:
MDISK 1607 3390 0001 10016 LM1607 RR
* This disk will then be visible from inside the Linux z/VM guest like:
$ ls -l /dev/disk/by-path/ccw-0.0.1607
lrwxrwxrwx 1 root root 11 Jun 8 03:18 /dev/disk/by-path/ccw-0.0.1607 -> ../../dasdd
(or use 'lsdasd')
* Now just use 'cmsfs-fuse' to mount that disk:
$ sudo cmsfs-fuse -t /dev/disk/by-path/ccw-0.0.1607 /mnt
$
* If the command comes back like above (on a system with the patch included),
the mount was successful and one may 'ls' that disk.
* In case of a broken tool one will get the error msg:
$ sudo cmsfs-fuse -t -o allow_other /dev/disk/by-path/ccw-0.0.1607 /mnt
fuse: unknown option(s): `-o hard_remove'
$
[Where problems could occur]
* Problem could occur in case this "-o hard_remove" is really
required, but no longer available.
* But this is handled by forcing an immediate file removal
in 'cmsfs_oper_init'.
* However things could break if cmsfs_oper_init is not properly
called, but it's done as part of 'fuse_operations cmsfs_oper'.
__________
cmsfs-fuse fails to mount any cms file system since it forces the
hard_remove option and it appears as though that option is no longer
recognized by fuse 3.
the recreate is very easy as I cannot yet get it to actually work. So,
I would make a CMS formatted minidisk available to an Ubuntu 22.04
z/VM virtual machine. Then, I used the following syntax:
cmsfs-fuse -t -o allow_other /dev/disk/by-path/ccw-0.0.0291 /mnt. The result of this command will be
fuse: unknown option(s): `-o hard_remove'
Similarly: cmsfs-fuse -t /dev/disk/by-path/ccw-0.0.0291 /mnt will result in:
fuse: unknown option(s): `-o hard_remove'
At this point, I cannot find an example of the command that will
actually allow the minidisk to be mounted.
(originally reported by 'richardflewis')
Upstream reported as: https://github.com/ibm-s390-linux/s390-tools/issues/131
Upstream fixed with: https://github.com/ibm-s390-linux/s390-tools/commit/0981df62c05e71123bc14483bba347f17aafa59a
This but is for getting this included into the Ubuntu package for
jammy.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1978323/+subscriptions
More information about the foundations-bugs
mailing list