File: test3.tcl

package info (click to toggle)
hfsutils 3.2.6-16
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,680 kB
  • sloc: ansic: 12,858; tcl: 1,937; makefile: 566; sh: 156; perl: 29
file content (13 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
# NAME:		test3
# DESCRIPTION:	create thousands of files
#
proc test3 {} {
    mkvol [expr 100 * 1024]	;# /usr/local/mirrors/image.hfs

    puts "Creating files..."

    for {set i 0} {$i < 25000} {incr i} {
	hcreate [format "f%x" $i]
    }
}