Differences From Artifact [94451bedbe]:
- File
kitdll/buildsrc/kitdll-0.0/cvfs.tcl
— part of check-in
[f44cf7fbe1]
at
2010-09-26 04:51:04
on branch trunk
— Fixed typo in matchindir
Added missing seek (user: rkeene, size: 8028) [annotate] [blame] [check-ins using]
To Artifact [3533698919]:
- File
kitdll/buildsrc/kitdll-0.0/vfs_kitdll.tcl
— part of check-in
[424322801f]
at
2010-09-26 04:51:16
on branch trunk
— Got KitDLL storage into workable state
Renamed some files for consistency
Added basic Makefile (user: rkeene, size: 6927) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
14 15 16 17 18 19 20 | proc ::vfs::kitdll::Unmount {local} { vfs::filesystem unmount $local } # Implementation ## Filesystem Data | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | proc ::vfs::kitdll::Unmount {local} { vfs::filesystem unmount $local } # Implementation ## Filesystem Data proc ::vfs::kitdll::data::getData {hashkey file {start 0} {end "end"}} { if {![info exists ::vfs::kitdll::data($file)]} { return -code error "Invalid operation" } return [string range $::vfs::kitdll::data($file) $start $end] } ## VFS and Chan I/O ### Dispatchers proc ::vfs::kitdll::vfshandler {hashkey subcmd args} { set cmd $args set cmd [linsert $cmd 0 "::vfs::kitdll::vfsop_${subcmd}" $hashkey] return [eval $cmd] |
︙ | ︙ | |||
212 213 214 215 216 217 218 | } unset -nocomplain metadata catch { array set metadata [::vfs::kitdll::data::getMetadata $hashkey $child] } | | | | | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | } unset -nocomplain metadata catch { array set metadata [::vfs::kitdll::data::getMetadata $hashkey $child] } if {[string index $root end] == "/"} { set child "${root}${child}" } else { set child "${root}/${child}" } if {[string index $child end] == "/"} { set child [string range $child 0 end-1] } if {![info exists metadata(type)]} { continue |
︙ | ︙ | |||
342 343 344 345 346 347 348 | vfs::filesystem posixerror $::vfs::posix(EROFS) } proc ::vfs::kitdll::vfsop_utime {} { vfs::filesystem posixerror $::vfs::posix(EROFS) } package provide vfs::kitdll 1.0 | > > | 308 309 310 311 312 313 314 315 316 | vfs::filesystem posixerror $::vfs::posix(EROFS) } proc ::vfs::kitdll::vfsop_utime {} { vfs::filesystem posixerror $::vfs::posix(EROFS) } package provide vfs::kitdll 1.0 ::vfs::kitdll::Mount vfs_kitdll_data /tmp |