Bug 104261

Summary: lockfile fails on fuse encfs
Product: File System Reporter: Michael S. Tsirkin (m.s.tsirkin)
Component: OtherAssignee: fs_other
Status: NEW ---    
Severity: normal CC: miklos, szg00000
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 4.2 Subsystem:
Regression: No Bisected commit-id:

Description Michael S. Tsirkin 2015-09-09 08:37:36 UTC
I have a directory mounted with encfs:
encfs -o nonempty /home/mst/Encrypted /home/mst/Private

lockfile in this directory fails:
$ lockfile -r 1 -s 1 $HOME/Private/Calendar.ics.lock
lockfile: Try praying, giving up on "/home/mst/Private/Calendar.ics.lock"

but works fine if I run lockfile under strace:
$ strace -f -o /dev/null lockfile -r 1 -s 1 $HOME/Private/Calendar.ics.lock
$ echo $?
0

This happens every time.

Note: I'm using 32 bit userspace and 64 bit kernel.
Comment 1 Michael S. Tsirkin 2015-09-09 08:45:20 UTC
I just reproduced this with a 32 bit kernel as well.
This is using Fedora 22.