+2003-03-17 Jean-Claude Wippler <jcw@equi4.com>
+
+ * pkgIndex.tcl, pkgIndex.tcl.in: mk4vfs rev bumped to 1.9
+ * mk4vfs.tcl: reverted to old translucent/readwrite open modes
+
2003-03-11 Andreas Kupries <andreask@activestate.com>
* doc/vfs.man: Added doctools documentation derived
# 20jan03 jcw 1.7 streamed zlib decompress mode, reduces memory usage
# 01feb03 jcw 1.8 fix mounting a symlink, cleanup mount/unmount procs
# 04feb03 jcw 1.8 whoops, restored vfs::mk4::Unmount logic
+# 17mar03 jcw 1.9 start with mode translucent or readwrite
-package provide mk4vfs 1.8
-package provide vfs::mk4 1.8
+package provide mk4vfs 1.9
+package provide vfs::mk4 1.9
package require Mk4tcl
package require vfs
init $db
- set v::mode($db) "readwrite"
- for {set idx 0} {$idx < [llength $args]} {incr idx} {
- switch -- [lindex $args $idx] {
- -readonly { set v::mode($db) "readonly" }
- -nocommit { set v::mode($db) "translucent" }
+ set mode 0
+ foreach arg $args {
+ switch -- $arg {
+ -readonly { set mode 1 }
+ -nocommit { set mode 2 }
}
}
- if {$v::mode($db) == "readwrite"} {
+ if {$mode == 0} {
periodicCommit $db
}
+ set v::mode($db) [lindex {translucent readwrite readwrite} $mode]
}
return $db
}
package ifneeded vfslib 1.3.1 [list source [file join $dir vfslib.tcl]]
# Old
-package ifneeded mk4vfs 1.8 [list source [file join $dir mk4vfs.tcl]]
+package ifneeded mk4vfs 1.9 [list source [file join $dir mk4vfs.tcl]]
package ifneeded zipvfs 1.0 [list source [file join $dir zipvfs.tcl]]
# New
package ifneeded vfs::ftp 1.0 [list source [file join $dir ftpvfs.tcl]]
package ifneeded vfs::http 0.5 [list source [file join $dir httpvfs.tcl]]
-package ifneeded vfs::mk4 1.8 [list source [file join $dir mk4vfs.tcl]]
+package ifneeded vfs::mk4 1.9 [list source [file join $dir mk4vfs.tcl]]
package ifneeded vfs::ns 0.5 [list source [file join $dir tclprocvfs.tcl]]
package ifneeded vfs::tar 0.9 [list source [file join $dir tarvfs.tcl]]
package ifneeded vfs::test 1.0 [list source [file join $dir testvfs.tcl]]
package ifneeded vfslib 1.3.1 [list source [file join $dir vfslib.tcl]]
# Old
-package ifneeded mk4vfs 1.8 [list source [file join $dir mk4vfs.tcl]]
+package ifneeded mk4vfs 1.9 [list source [file join $dir mk4vfs.tcl]]
package ifneeded zipvfs 1.0 [list source [file join $dir zipvfs.tcl]]
# New
package ifneeded vfs::ftp 1.0 [list source [file join $dir ftpvfs.tcl]]
package ifneeded vfs::http 0.5 [list source [file join $dir httpvfs.tcl]]
-package ifneeded vfs::mk4 1.8 [list source [file join $dir mk4vfs.tcl]]
+package ifneeded vfs::mk4 1.9 [list source [file join $dir mk4vfs.tcl]]
package ifneeded vfs::ns 0.5 [list source [file join $dir tclprocvfs.tcl]]
package ifneeded vfs::tar 0.9 [list source [file join $dir tarvfs.tcl]]
package ifneeded vfs::test 1.0 [list source [file join $dir testvfs.tcl]]