File: cache

package info (click to toggle)
scsitools 0.15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 384 kB
  • sloc: ansic: 3,154; tcl: 2,144; makefile: 48; sh: 41
file content (47 lines) | stat: -rwxr-xr-x 1,436 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/wish -f
# Copyright 1993 Yggdrasil Computing, Incorporated
# You may copy this file according to the terms and conditions of version 2
# of the GNU General Public License as published by the Free Software
# Foundation.

frame .h
label .h.info -bitmap info -bg pink
message .h.message -width 300 -justify center -bg pink -text \
	"Scsi Cache Page configuration - $argv."

pack .h.info .h.message -padx 10 -side left
pack .h -pady 10

message .message -width 300 -justify center -bg red -fg white -text \
	"Caution! Do not turn on the write cache unless you know what you are doing."
pack .message -pady 10

source /usr/lib/scsi/generic

set button_list {wrcache rdcache dummy}
set text_list {readret writeret disprefetch minprefetch maxprefetch ceiling}
set switch {-c}
set text_descriptions {"Demand Read Retention Priority " "Demand Write Retention Priority " "Disable Pre-Fetch Transfer Length " "Minimum Pre-Fetch " "Maximum Pre-Fetch " "Maximum Pre-Fetch Ceiling " }
set label_width 35
set text_width 10

frame .f1

generate_textboxes

frame .but
checkbutton .rdcache -text "Read cache enabled" 

checkbutton .wrcache -text "Write cache enabled"

checkbutton .dummy -text " "

pack .rdcache .wrcache -in .but -side left -padx 5


pack .but
pack .readret .writeret .disprefetch .minprefetch .maxprefetch .ceiling -in .f1 -pady 10 -anchor w
pack .f1 -side left -padx 3m -pady 3m

read_page $argv "-X"
read_modifiable $argv