Skip to contentSkip to conversation

fuser fails to list processes that have a directory on a btrfs filesystem as their current working directory

DISCUSSION Lutz Vieweg 1 participant 1 message Jun 26, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

JFYI: Not a btrfs bug, but a btrfs-specific misbehaviour of "fuser" that might easily be misinterpreted as a btrfs bug:

http://bugzilla.centos.org/view.php?id=8966

Quoted 9 lines

/usr/sbin/fuser (from psmisc-22.20-8.el7.x86_64) does not list any processes that have a directory on a btrfs file system as their current working directory.

(For file systems other than btrfs, this works.)

Steps To Reproduce:
mkdir /some/btrfs/testdir
cd /some/btrfs/testdir
fuser -v -m /some/btrfs

Quoted 8 lines

This should list your current shell as one of the processes using the /some/btrfs file system, but it doesn't

The same on /some/xfs/testdir works fine.

This bug is not present in upstream "psmisc" sources as of current master in
git://git.code.sf.net/p/psmisc/code

An fuser executable compiled from the current upstream sources works fine also for btrfs.

Regards,

Lutz Vieweg