Bug 104261 - lockfile fails on fuse encfs
Summary: lockfile fails on fuse encfs
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 08:37 UTC by Michael S. Tsirkin
Modified: 2016-03-20 10:00 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.