Mailinglist Archive: opensuse-bugs (13069 mails)

< Previous Next >
[Bug 464295] New: fuser command cannot operate on root directory "/"
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 Jan 2009 16:09:02 -0700 (MST)
  • Message-id: <bug-464295-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=464295


Summary: fuser command cannot operate on root directory "/"
Product: openSUSE 11.1
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: mike@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


Running the command "fuser -uvm /" gives you the error output

Cannot stat : No such file or directory
Cannot stat : No such file or directory
Cannot stat : No such file or directory

without any meaningful results.

The culprit is psmisc-22.6-nfs4fuser.patch in the psmisc package which adds
code to strip trailing slashes from the argument path names:

if (this_name->filename[len-1] == '/')
this_name->filename[len-1] = '\0';

Unfortunately, there is no check for a "/" argument, resulting in "/" being
mangled to an empty string. A stat("", ...) system call produces the error
messages above.

You can use "fuser -uvm //" as a workaround, but fuser is also run by the
system's boot.localfs script to kill processes with write access to the root
filesystem. Currently, these processes are not killed.


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >