Opened 10 years ago

Closed 9 years ago

#4661 closed bug (fixed)

NFS: subdirectories not directories /KDL on file touch.

Reported by: kallisti5 Owned by: mmu_man
Priority: high Milestone: R1
Component: File Systems/NFS Version: R1/alpha1
Keywords: Cc: kallisti5, william.a.lawson@…, haiku@…
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Mount nfs share:
mount_nfs 192.168.1.200:/frisky /chao
NFS files are present as expected in /chao/
Trying to navigate to any directory in /chao/ turns up empty directory in tracker.
Trying to navigate to any directory in /chao/ turns up "Not a directory"

Details below.

Attachments (2)

kdl-nfs.png (409.9 KB ) - added by kallisti5 10 years ago.
KDL after touching a file on the root of the NFS share.
nfs_subdir.patch (2.1 KB ) - added by mjw 10 years ago.
Fix subdirs under NFS

Download all attachments as: .zip

Change History (16)

comment:1 by kallisti5, 10 years ago

Cc: kallisti5 added

/chao> ls -la drwxrwxr-x 9 65534 65534 4096 Sep 27 17:56 . drwxrwxrwx 1 user root 0 Sep 27 17:59 .. drwxrwxrwx 2 65534 65534 4096 Sep 1 07:54 pictures

/chao> cd pictures/ sh: cd: pictures/: Not a directory

comment:2 by kallisti5, 10 years ago

/chao> ls -la
drwxrwxr-x  9 65534 65534  4096 Sep 27 17:56 .
drwxrwxrwx  1 user  root      0 Sep 27 17:59 ..
drwxrwxrwx  2 65534 65534  4096 Sep  1 07:54 pictures

/chao> cd pictures/
sh: cd: pictures/: Not a directory

comment:3 by kallisti5, 10 years ago

hitting tab does list the files in the nfs sub directory:
/chao> ls pictures/
DSC00080.JPG       DSC00184.JPG       DSC00197.JPG       DSC00214.JPG

comment:4 by kallisti5, 10 years ago

whoops... touching a file on the nfs mount dir causes a KDL.. bt screenshot follows. I saw #3500 but I don't think this is the same issue as the KDL does not occur until modifications are made to the nfs mount. also the touch took a few seconds (10?) before the kdl occured.

by kallisti5, 10 years ago

Attachment: kdl-nfs.png added

KDL after touching a file on the root of the NFS share.

comment:5 by kallisti5, 10 years ago

Summary: NFS: subdirectories not directories?NFS: subdirectories not directories /KDL on file touch.

comment:6 by lawsonwa, 10 years ago

Cc: william.a.lawson@… added

comment:7 by kallisti5, 10 years ago

Priority: normalhigh

comment:8 by kallisti5, 10 years ago

bumping to high as it is standard OS functionality that causes a KDL on every platform and is not limited to one user or piece of hardware. (#5053 closed as duplicate)

comment:9 by kallisti5, 10 years ago

Little more info, after un-mounting the NFS share, the icon remains on the desktop and cannot be removed. Double-clicking icon results in no window or action, restarting tracker resolves this issue and the NFS icon disappears.

by mjw, 10 years ago

Attachment: nfs_subdir.patch added

Fix subdirs under NFS

comment:10 by mjw, 10 years ago

OK, I fixed the subdirectory problem, and have attached a patch (nfs_subdir.patch).

The KDL is not fixed, that is next on my list.

I think there is a memory leak when vnodes are freed as well. I need to investigate that further.

Still, with the attached patch, the NFS filesystem driver should be OK if you want a read-only filesystem.

comment:11 by mjw, 10 years ago

Cc: haiku@… added

comment:12 by anevilyak, 10 years ago

Subdirectory patch applied in hrev35612, sorry for the delay!

comment:13 by kallisti5, 9 years ago

whoo, can stream movies off of nfs shares now (including sub-directories). I call this one resolved. Any NFS bugs left can be opened in new tickets.

comment:14 by mmu_man, 9 years ago

Resolution: fixed
Status: newclosed

Ok !

Note: See TracTickets for help on using tickets.