* [Bug 206429] New: xfs_admin can't print both label and UUID for mounted filesystems
@ 2020-02-05 12:28 bugzilla-daemon
2020-02-05 15:39 ` [Bug 206429] " bugzilla-daemon
0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2020-02-05 12:28 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=206429
Bug ID: 206429
Summary: xfs_admin can't print both label and UUID for mounted
filesystems
Product: File System
Version: 2.5
Kernel Version: n/a
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: XFS
Assignee: filesystem_xfs@kernel-bugs.kernel.org
Reporter: vtrefny@redhat.com
Regression: No
Created attachment 287143
--> https://bugzilla.kernel.org/attachment.cgi?id=287143&action=edit
patch for xfs_admin
Using "xfs_admin -lu" to print both label and UUID of a mounted XFS filesystem
stopped working in xfs_admin version 5.4.0.
Label is correctly printed, but the UUID is missing:
$ sudo xfs_admin -lu /dev/sda
label = "aaa"
Printing only UUID works as expected:
$ sudo xfs_admin -u /dev/sda
UUID = a3367b49-6f3f-4f50-9b34-38b1561da085
Command also works as expected for an unmounted filesystem
$ sudo xfs_admin -lu /dev/sda
label = "aaa"
UUID = a3367b49-6f3f-4f50-9b34-38b1561da085
The bug is caused by this change --
https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/commit/?id=3f153e051abccce0c120ade5c08a675a50cecee9
-- xfs_io is now used to print label and xfs_admin exists after printing it.
I'm attaching a simple naive patch for xfs_admin that fixes this issue.
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug 206429] xfs_admin can't print both label and UUID for mounted filesystems
2020-02-05 12:28 [Bug 206429] New: xfs_admin can't print both label and UUID for mounted filesystems bugzilla-daemon
@ 2020-02-05 15:39 ` bugzilla-daemon
0 siblings, 0 replies; 2+ messages in thread
From: bugzilla-daemon @ 2020-02-05 15:39 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=206429
Eric Sandeen (sandeen@sandeen.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sandeen@sandeen.net
--- Comment #1 from Eric Sandeen (sandeen@sandeen.net) ---
The patch is not quite the right approach - the get label command sets both
DB_OPTS and IO_OPTS, as does the set label command, and your patch would make
it fall back to xfs_db for both, which will then fail to set a label on a
mounted filesystem:
# db/xfs_admin.sh -L foobar mnt
xfs_admin: cannot open mnt: Is a directory
# sh -x db/xfs_admin.sh -L foobar mnt
...
+ eval xfs_db -x -p xfs_admin -c ''\''label' 'foobar'\''' mnt
++ xfs_db -x -p xfs_admin -c 'label foobar' mnt
xfs_admin: cannot open mnt: Is a directory
xfs_admin has become convoluted/complicated, let me give this some thought.
Thanks for the report,
-Eric
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-05 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 12:28 [Bug 206429] New: xfs_admin can't print both label and UUID for mounted filesystems bugzilla-daemon
2020-02-05 15:39 ` [Bug 206429] " bugzilla-daemon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.