diff options
Diffstat (limited to 'web/attachments/49931-check_disk.patch')
-rw-r--r-- | web/attachments/49931-check_disk.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/web/attachments/49931-check_disk.patch b/web/attachments/49931-check_disk.patch new file mode 100644 index 0000000..44ea1c4 --- /dev/null +++ b/web/attachments/49931-check_disk.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | --- check_disk.c.orig Mon Mar 24 13:23:39 2003 | ||
2 | +++ check_disk.c Mon Mar 24 13:26:47 2003 | ||
3 | @@ -55,6 +55,7 @@ | ||
4 | char *exclude_device = ""; | ||
5 | int verbose = 0; | ||
6 | int display_mntp = FALSE; | ||
7 | +int local = FALSE; | ||
8 | |||
9 | |||
10 | int | ||
11 | @@ -75,7 +76,11 @@ | ||
12 | if (process_arguments (argc, argv) != OK) | ||
13 | usage ("Could not parse arguments\n"); | ||
14 | |||
15 | - asprintf (&command_line, "%s %s", DF_COMMAND, path); | ||
16 | + if (local) { | ||
17 | + asprintf (&command_line, "%s -l %s", DF_COMMAND, path); | ||
18 | + } else { | ||
19 | + asprintf (&command_line, "%s %s", DF_COMMAND, path); | ||
20 | + } | ||
21 | |||
22 | if (verbose>0) | ||
23 | printf ("%s ==> ", command_line); | ||
24 | @@ -169,6 +174,7 @@ | ||
25 | {"verbose", no_argument, 0, 'v'}, | ||
26 | {"version", no_argument, 0, 'V'}, | ||
27 | {"help", no_argument, 0, 'h'}, | ||
28 | + {"local", no_argument, 0, 'l'}, | ||
29 | {"mountpoint", no_argument, 0, 'm'}, | ||
30 | {"exclude_device", required_argument, 0, 'x'}, | ||
31 | {"quiet", no_argument, 0, 'q'}, | ||
32 | @@ -187,9 +193,9 @@ | ||
33 | while (1) { | ||
34 | #ifdef HAVE_GETOPT_H | ||
35 | c = | ||
36 | - getopt_long (argc, argv, "+?Vqhvt:c:w:p:x:m", long_options, &option_index); | ||
37 | + getopt_long (argc, argv, "+?Vqhvt:c:w:p:x:lm", long_options, &option_index); | ||
38 | #else | ||
39 | - c = getopt (argc, argv, "+?Vqhvt:c:w:p:x:m"); | ||
40 | + c = getopt (argc, argv, "+?Vqhvt:c:w:p:x:lm"); | ||
41 | #endif | ||
42 | |||
43 | if (c == -1 || c == EOF) | ||
44 | @@ -247,6 +253,9 @@ | ||
45 | break; | ||
46 | case 'm': /* display mountpoint */ | ||
47 | display_mntp = TRUE; | ||
48 | + break; | ||
49 | + case 'l': | ||
50 | + local = TRUE; | ||
51 | break; | ||
52 | case 'x': /* exclude path or partition */ | ||
53 | exclude_device = optarg; | ||