]>
Commit | Line | Data |
---|---|---|
b8e4bdf8 | 1 | #!/bin/csh -f |
2 | # | |
5eaef520 | 3 | # This script sets the quota for a uid on a filesystem. |
b8e4bdf8 | 4 | |
5 | set dev=$1 | |
6 | ||
5eaef520 | 7 | # Checking for /etc/enforce_quota is transitional code and should be |
59ec8dae | 8 | # removed when the Moira database has an accurate understanding of what |
b8e4bdf8 | 9 | # everyone's quotas are. |
10 | if ( -f /etc/enforce_quota ) then | |
11 | while (1) | |
12 | # set args = $< will NOT work. $< will be treated as a single word | |
13 | set args = `echo $<` | |
5eaef520 | 14 | |
b8e4bdf8 | 15 | if (${#args} != 2) break |
16 | ||
a4ba7bb9 | 17 | set uid = $args[1] |
18 | set quota = $args[2] | |
b8e4bdf8 | 19 | |
a4ba7bb9 | 20 | setquota $dev $uid $quota |
b8e4bdf8 | 21 | end |
22 | endif | |
23 | ||
24 | exit 0 | |
25 | ||
26 | # | |
27 | # $Source$ | |
28 | # $Header$ | |
29 | # |