-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDiskInfo.page
57 lines (39 loc) · 1.69 KB
/
DiskInfo.page
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
48
49
50
51
52
53
54
55
56
57
Icon="icons/disksettings.png"
Menu="Parity Disk Cache"
Title="{$func(my_disk($name))} Device Settings"
---
<? $disk = $disks[$name]; ?>
<form markdown="1" method="POST" action="/update.htm" target="progressFrame">
Partition 1 size:
: <?=$disk['size'];?> KB (K=1024)
Partition format:
: <?=$disk['format'];?>
<? if ($disk['name']!="parity"): ?>
File sytem type:
: <?=$disk['fsType'];?>
<? endif; ?>
Spin down delay:
: <select name="diskSpindownDelay.<?=$disk['idx'];?>" size="1">
<?=mk_option($disk['spindownDelay'], "-1", "Use default");?>
<?=mk_option($disk['spindownDelay'], "0", "Never");?>
<?=mk_option($disk['spindownDelay'], "15", "15 minutes");?>
<?=mk_option($disk['spindownDelay'], "30", "30 minutes");?>
<?=mk_option($disk['spindownDelay'], "45", "45 minutes");?>
<?=mk_option($disk['spindownDelay'], "1", "1 hour");?>
<?=mk_option($disk['spindownDelay'], "2", "2 hours");?>
<?=mk_option($disk['spindownDelay'], "3", "3 hours");?>
<?=mk_option($disk['spindownDelay'], "4", "4 hours");?>
<?=mk_option($disk['spindownDelay'], "5", "5 hours");?>
<?=mk_option($disk['spindownDelay'], "6", "6 hours");?>
<?=mk_option($disk['spindownDelay'], "7", "7 hours");?>
<?=mk_option($disk['spindownDelay'], "8", "8 hours");?>
<?=mk_option($disk['spindownDelay'], "9", "9 hours");?>
</select>
<? if (($var['spinupGroups']=="yes")&&($disk['name']!="cache")): ?>
Spinup group(s):
: <input type="text" name="diskSpinupGroup.<?=$disk['idx'];?>" maxlength="256" value="<?=$disk['spinupGroup'];?>">
<? endif; ?>
: <input type="submit" name="changeDisk" value="Apply">
<button type="button" onClick="done();">Done</button>
</form>