Help regarding vfs



I am running into a problem with VFS that has me
stymied.

If I run the following script on Mac OS X 10.4
(Tcl release 8.4.10) using a PowerPC mac.
The script is unable to read it's own vfs. Copies
to the mounted vfs succeed (I can unwrap them and
see the files) But the script is not able to read
the vfs it itself created. Unix permissions all
seen normal.

If I try to directly open a preexistent vfs I get
the same problem, it can find no files in it, even
though the file exists and was created by a previous
execution of the same script.

---
package require vfs::mk4
console show

vfs::mk4::Mount lib.vfs /tmp

foreach fl [glob -nocomplain P*.*] {
puts stdout "copying $fl to \/tmp\/[file tail $fl]"
file copy -force $fl /tmp/[file tail $fl]

}
foreach fl [glob /tmp/*.*] {
puts stdout "found $fl"
}

vfs::filesystem unmount /tmp

::vfs::mk4::Mount lib.vfs /tmp
puts stdout "remounting"
foreach fl [glob /tmp/*.*] {
puts stdout "found $fl"
}
vfs::filesystem unmount /tm
---
The log file shows the copies, but crashes on the
second glob, having found no files. If I take the first
two loops out and just try to open and glob a preexistent
lib.vfs, I get the same crash.

Any suggestions on what may be going wrong here?

Thanks,

Al
--
--------------------------------------------------
Alan L. Folsom, Jr. alan@xxxxxxxxxxx
--------------------------------------------------
.



Relevant Pages

  • Re: Help regarding vfs
    ... virtual mount, that should be considered a bug. ... Alan Folsom wrote: ... the file copy chose the vfs mount over the 'real' /tmp. ... The script is unable to read it's own vfs. ...
    (comp.lang.tcl)
  • Re: Help regarding vfs
    ... Not to answer my own question, but it appears the problem was related to using /tmp as the mount point for the vfs. ... The glob chose the 'real' one before considering the vfs. ... The script is unable to read it's own vfs. ...
    (comp.lang.tcl)
  • Re: Getting the word to conventional programmers
    ... I have vfs 1.3 (ActiveTcl 8.4.9) and it worked for me. ... Once I did the script and it started I had to ... Robert ...
    (comp.lang.tcl)
  • Re: Changing v_op for vnode on the fly
    ... MAC allows to synchronize access in readand writesyscalls, ... because I need to synchronize access in VOP_GETPAGES ... >> a solution with stackable VFS yet. ... loose synchronization if some process opened files before top VFS layer ...
    (freebsd-hackers)
  • Re: VFS KPI was Re: [OpenAFS-devel] Re: AFS ... or equivalent ...
    ... I expect to see further changes in VFS for 8.x. ... This is loosely related to both the OpenAFS thread and the Mac OS X ZFS ... quite dramatic changes to their VFS when going from Panther (very FreeBSD ... existing filesystems to this design would be far less than the ongoing ...
    (freebsd-questions)