Bug 5615
Summary: | odd cwd behavior | ||
---|---|---|---|
Product: | File System | Reporter: | Eric Van Hensbergen (ericvh) |
Component: | v9fs | Assignee: | Eric Van Hensbergen (ericvh) |
Status: | CLOSED CODE_FIX | ||
Severity: | high | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.16-rc4 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Eric Van Hensbergen
2005-11-16 07:58:29 UTC
Here's a funny twist: bash-2.05b# cd /mnt/9 bash-2.05b# cd / bash-2.05b# cd /mnt/9/tmp bash-2.05b# pwd /mnt/9/tmp bash-2.05b# ls u9fs.log bash-2.05b# pwd /mnt/9/tmp bash-2.05b# ls u9fs.log bash-2.05b# pwd /mnt/9/tmp bash-2.05b# ls u9fs.log bash-2.05b# pwd /mnt/9/tmp bash-2.05b# /bin/pwd /bin/pwd: cannot get current directory: No such file or directory With debug on: bash-2.05b# /bin/pwd /mnt/9/tmp bash-2.05b# ls -- v9fs_fid_get_created (123): dentry: tmp (c00000000745ae08) -- v9fs_fid_get_created (123): return 0000000000000000 -- v9fs_fid_lookup (123): dentry: tmp (c00000000745ae08) -- v9fs_t_walk (123): fid 1 newfid 2 wname '<NULL>' -- v9fs_t_open (123): fid 2 mode 0 -- v9fs_fid_lookup (123): dentry: tmp (c00000000745ae08) -- v9fs_t_stat (123): fid 1 -- v9fs_t_read (123): fid 2 offset 0x0 count 0x2310 -- v9fs_t_read (123): fid 2 offset 0x9b count 0x2310 -- v9fs_t_read (123): fid 2 offset 0x9b count 0x2310 -- v9fs_t_clunk (123): fid 2 u9fs.log bash-2.05b# /bin/pwd /bin/pwd: cannot get current directory: No such file or directory (note the lack of any v9fs debug on the pwd's) -- it's definitely something screwy with the dcache. I'll have to instrument with some more debug. Potentially this is the motivation I need to rewrite the fid management stuff (which is behind the aggressive dcache invalidation). Upping priority as it made Andrew's issues list. Will try and resolve this in the next few days. I'm writing up implementation notes for the fix in swik: http://swik.net/FID-mapping-rework I think I have a workable scenerio but it'll take me a few more days to implement and try it out. fixed in v9fs-devel.git tree on kernel.org |