Util-Linux package development
 help / color / mirror / Atom feed
* mount: sshfs problem with "defaults" option after 2.39 upgrade
@ 2023-05-21 16:18 Quentin Rameau
  2023-05-21 18:06 ` Thomas Weißschuh
  0 siblings, 1 reply; 10+ messages in thread
From: Quentin Rameau @ 2023-05-21 16:18 UTC (permalink / raw)
  To: util-linux

Hi,

I just updated util-linux to 2.39 from 2.38.1 (on Alpine Linux),
and new mount triggers an error for an old sshfs fstab mount entry,
that was working until now.

The line in question is:

user@host:path /media/ssh/path sshfs defaults,nosuid,nodev,noexec,noatime,noauto,_netdev,user,idmap=user,allow_other,rec 0 0

and fails with:

$ mount /media/ssh/path
fuse: unknown option(s): `-o defaults'

I can see in the trace that "defaults" is actually passed to the helper

30906 execve("/sbin/mount.sshfs", ["/sbin/mount.sshfs", "user@host:path", "/media/ssh/path", "-o", "rw,defaults,noatime,_netdev,...", <truncated here>

And running it with LIBMOUNT_DEBUG=all shows

30933: libmount:   UPDATE: 30933: libmount:       FS: synced: vfs: 'rw,noatime,nodev,nosuid,noexec' fs: 'idmap=user,allow_other,reconnect' user: 'defaults,noauto,_netdev,, optstr: 'rw,defaults,noatime,noauto,_netdev,user=quinq,nodev,nosuid,noexec,allow_other,reconnect'
[...]
optstr: rw,defaults,noatime,noauto,_netdev,nodev,nosuid,noexec,idmap=user,allow_other,reconnect
VFS-optstr: rw,noatime,nodev,nosuid,noexec
FS-opstr: idmap=user,allow_other,reconnect
user-optstr: defaults,noauto,_netdev

The "defaults" option is stripped from the analog traces with mount 2.38.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-05-22 16:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-21 16:18 mount: sshfs problem with "defaults" option after 2.39 upgrade Quentin Rameau
2023-05-21 18:06 ` Thomas Weißschuh
2023-05-21 18:15   ` Quentin Rameau
2023-05-21 18:58     ` Thomas Weißschuh
2023-05-21 19:20       ` Quentin Rameau
2023-05-22  6:55         ` Thomas Weißschuh
2023-05-22 16:56           ` Quentin Rameau
2023-05-22 14:21         ` Karel Zak
2023-05-22 15:33           ` Karel Zak
2023-05-22 16:55             ` Quentin Rameau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox