cmsfs-fuse fails to mount file systems on Ubuntu 22.04 with error unknown option(s): '-o hard_remove'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Medium
|
Skipper Bug Screeners | ||
s390-tools (Ubuntu) |
Fix Released
|
Medium
|
Frank Heimes | ||
Jammy |
Fix Released
|
Medium
|
Frank Heimes | ||
Kinetic |
Fix Released
|
Medium
|
Frank Heimes | ||
s390-tools-signed (Ubuntu) |
Fix Released
|
Medium
|
Frank Heimes | ||
Jammy |
Fix Released
|
Medium
|
Frank Heimes | ||
Kinetic |
Fix Released
|
Medium
|
Frank Heimes |
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 0981df62c05e711
[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/
lrwxrwxrwx 1 root root 11 Jun 8 03:18 /dev/disk/
(or use 'lsdasd')
* Now just use 'cmsfs-fuse' to mount that disk:
$ sudo cmsfs-fuse -t /dev/disk/
$
* 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/
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/
fuse: unknown option(s): `-o hard_remove'
Similarly: cmsfs-fuse -t /dev/disk/
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:/
Upstream fixed with: https:/
This but is for getting this included into the Ubuntu package for jammy.
Changed in ubuntu-z-systems: | |
status: | New → Confirmed |
Changed in s390-tools-signed (Ubuntu): | |
status: | New → Confirmed |
Changed in ubuntu-z-systems: | |
importance: | Undecided → Medium |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
Changed in s390-tools (Ubuntu Jammy): | |
importance: | Undecided → Medium |
Changed in s390-tools-signed (Ubuntu Kinetic): | |
status: | Confirmed → New |
Changed in s390-tools (Ubuntu Jammy): | |
status: | New → Confirmed |
assignee: | nobody → Frank Heimes (fheimes) |
Changed in s390-tools-signed (Ubuntu Jammy): | |
assignee: | nobody → Frank Heimes (fheimes) |
Changed in s390-tools-signed (Ubuntu Kinetic): | |
assignee: | nobody → Frank Heimes (fheimes) |
Changed in s390-tools (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
Changed in s390-tools-signed (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
Changed in s390-tools-signed (Ubuntu Jammy): | |
importance: | Undecided → Medium |
Changed in s390-tools-signed (Ubuntu Kinetic): | |
importance: | Undecided → Medium |
description: | updated |
Changed in s390-tools-signed (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in s390-tools-signed (Ubuntu Jammy): | |
status: | Fix Committed → Fix Released |
Changed in s390-tools-signed (Ubuntu Kinetic): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
Test builds of the updated packages (that include fixes for LP#1971993, LP#1960119, LP#1959548, LP#1971959 and LP#1978323) are available here: /launchpad. net/~fheimes/ +archive/ ubuntu/ lp1978323/ +packages
https:/