gamin doesn't notice local file creation on NFS4

Bug #383118 reported by Valentijn Sessink
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gvfs
Fix Released
Medium
gamin (Ubuntu)
Confirmed
Low
Unassigned
gvfs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gamin

Gamin Version: 0.1.9-2ubuntu2 (Ubuntu 8.04) seems to not notice file creation events on an NFS4 share. It *does* recognize local file creation under NFS version 3.

First, we'll mount with NFSv3:
machine# mount -t nfs server:/home /mnt/
machine$ gvfs-monitor-dir /mnt/valentyn/

[ in other terminal: ]machine$ touch /mnt/valentyn/demofile

Directory Monitor Event:
Child = /mnt/valentyn/demofile
Event = CREATED
Directory Monitor Event:
Child = /mnt/valentyn/demofile
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/valentyn/demofile
Event = CHANGES_DONE_HINT

Now, we'll try this again with nfsv4:
machine# mount -t nfs4 server:/home /mnt/
machine$ gvfs-monitor-dir /mnt/valentyn/

[ in other terminal: ]machine$ touch /mnt/valentyn/demofile

Directory Monitor Event:
Child = /mnt/valentyn/demofile
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/valentyn/demofile
Event = CHANGES_DONE_HINT

As you see, the ATTRIB CHANGED and CHANGES_DONE_HINT events show up, but the CREATED event is missing.

This only goes for files, if you create a directory, it will show up immediately (as expected).

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

It would be great if this issue could be confirmed with the most recent gamin version 0.1.10-1ubuntu1 available in the latest Karmic alpha release:

https://edge.launchpad.net/ubuntu/+source/gamin/0.1.10-1ubuntu1/+build/1060326

Although I'm not sure if this bug would qualify for a Stable Release Update for Hardy, in order for any bug to qualify for a Stable Release Update it must be confirmed as fixed in the actively developed release (ie Karmic). See https://wiki.ubuntu.com/StableReleaseUpdates for more information. Please let us know your results. Thanks.

Changed in gamin (Ubuntu):
status: New → Incomplete
Revision history for this message
Dragomir Minkovski (dejuren) wrote :

I can confirm the bug in jaunty, it's the same behavior Valentijn described:

--- with nfs3
ubuntu# mount -t nfs server:/export /mnt/
ubuntu$ gvfs-monitor-dir /mnt/ubuntu/

ubuntu$ touch /mnt/ubuntu/aaa

Directory Monitor Event:
Child = /mnt/ubuntu/aaa
Event = CREATED
Directory Monitor Event:
Child = /mnt/ubuntu/aaa
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/ubuntu/aaa
Event = CHANGES_DONE_HINT

--- with nfsv4:
ubuntu# mount -t nfs4 server:/export /mnt/
ubuntu$ gvfs-monitor-dir /mnt/ubuntu/

ubuntu$ touch /mnt/ubuntu/bbb

Directory Monitor Event:
Child = /mnt/ubuntu/bbb
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/ubuntu/bbb
Event = CHANGES_DONE_HINT

Next I'm going to test gamin version 0.1.10-1ubuntu1 in Karmic as of Leann's comment.

Revision history for this message
Dragomir Minkovski (dejuren) wrote :

Same with Karmic, bug is still alive:

--- with nfs3
ubuntu# mount -t nfs server:/export /mnt/
ubuntu$ gvfs-monitor-dir /mnt/ubuntu/

ubuntu$ touch /mnt/ubuntu/ccc

Directory Monitor Event:
Child = /mnt/ubuntu/ccc
Event = CREATED
Directory Monitor Event:
Child = /mnt/ubuntu/ccc
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/ubuntu/ccc
Event = CHANGES_DONE_HINT

--- with nfsv4:
ubuntu# mount -t nfs4 server:/export /mnt/
ubuntu$ gvfs-monitor-dir /mnt/ubuntu/

ubuntu$ touch /mnt/ubuntu/ddd

Directory Monitor Event:
Child = /mnt/ubuntu/ddd
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/ubuntu/ddd
Event = CHANGES_DONE_HINT

Changed in gamin (Ubuntu):
status: Incomplete → Confirmed
Changed in gamin (Ubuntu):
importance: Undecided → Low
Revision history for this message
Valentijn Sessink (valentijn) wrote :

Still there in Ubuntu 10.04 (Lucid)

Revision history for this message
Dragomir Minkovski (dejuren) wrote :

Confirming with Lucid alpha 3

--- with nfs3:
$mount -t nfs server:/export /mnt

$mount
server:/export on /mnt type nfs (rw,addr=10.153.108.235)

gvfs-monitor-dir /mnt/

Directory Monitor Event:
Child = /mnt/aaa
Event = CREATED
Directory Monitor Event:
Child = /mnt/aaa
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/aaa
Event = CHANGES_DONE_HINT

--- with nfsv4:
$ mount -t nfs4 server:/export /mnt

$ mount
server:/export on /mnt type nfs4 (rw,clientaddr=10.153.108.152,addr=10.153.108.235)

gvfs-monitor-dir /mnt/
Directory Monitor Event:
Child = /mnt/aaa
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /mnt/aaa
Event = CHANGES_DONE_HINT

Revision history for this message
Ryan Tandy (rtandy) wrote :

Still present at least as recently as 12.04.3; will test something newer (especially considering recent changes in glib) when I get a chance.

Revision history for this message
Ryan Tandy (rtandy) wrote :

Looks to be fixed in trusty. Can anyone else affected confirm that?

Changed in gvfs:
importance: Unknown → Medium
status: Unknown → New
Changed in gvfs:
status: New → Incomplete
Changed in gvfs:
status: Incomplete → Fix Released
Revision history for this message
Ryan Tandy (rtandy) wrote :

$ lsb_release -cd
Description: Ubuntu 14.04.2 LTS
Codename: trusty
$ grep /home /proc/mounts
auto.misc /home autofs rw,relatime,fd=6,pgrp=1351,timeout=300,minproto=5,maxproto=5,direct 0 0
server:/home /home nfs4 rw,nosuid,nodev,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.0.253.227,local_lock=none,addr=10.0.2.1 0 0
$ gvfs-monitor-dir . &
[1] 2986
$ touch test
$ Directory Monitor Event:
Child = /home/rtandy/test
Event = CREATED
Directory Monitor Event:
Child = /home/rtandy/test
Event = ATTRIB CHANGED
Directory Monitor Event:
Child = /home/rtandy/test
Event = CHANGES_DONE_HINT
$ rm test
$ Directory Monitor Event:
Child = /home/rtandy/test
Event = DELETED

Marking fixed in gvfs. I don't know how to test gamin.

Changed in gvfs (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.