← Back to team overview

desktop-packages team mailing list archive

[Bug 383118] Re: gamin doesn't notice local file creation on NFS4

 

$ 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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/383118

Title:
  gamin doesn't notice local file creation on NFS4

Status in GVFS:
  Fix Released
Status in gamin package in Ubuntu:
  Confirmed
Status in gvfs package in Ubuntu:
  Fix Released

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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/383118/+subscriptions