Thu Aug 6 00:23:08 2009 UTC ()
add D to getopt so that previous actually works


(pooka)
diff -r1.19 -r1.20 src/libexec/lfs_cleanerd/lfs_cleanerd.c

cvs diff -r1.19 -r1.20 src/libexec/lfs_cleanerd/lfs_cleanerd.c (expand / switch to unified diff)

--- src/libexec/lfs_cleanerd/lfs_cleanerd.c 2009/08/06 00:20:45 1.19
+++ src/libexec/lfs_cleanerd/lfs_cleanerd.c 2009/08/06 00:23:08 1.20
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: lfs_cleanerd.c,v 1.19 2009/08/06 00:20:45 pooka Exp $ */ 1/* $NetBSD: lfs_cleanerd.c,v 1.20 2009/08/06 00:23:08 pooka Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2005 The NetBSD Foundation, Inc. 4 * Copyright (c) 2005 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Konrad E. Schroder <perseant@hhhh.org>. 8 * by Konrad E. Schroder <perseant@hhhh.org>.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -1326,27 +1326,27 @@ main(int argc, char **argv) @@ -1326,27 +1326,27 @@ main(int argc, char **argv)
1326 * Set up defaults 1326 * Set up defaults
1327 */ 1327 */
1328 atatime = 1; 1328 atatime = 1;
1329 segwait_timeout = 300; /* Five minutes */ 1329 segwait_timeout = 300; /* Five minutes */
1330 load_threshold = 0.2; 1330 load_threshold = 0.2;
1331 stat_report = 0; 1331 stat_report = 0;
1332 inval_segment = -1; 1332 inval_segment = -1;
1333 copylog_filename = NULL; 1333 copylog_filename = NULL;
1334 nodetach = 0; 1334 nodetach = 0;
1335 1335
1336 /* 1336 /*
1337 * Parse command-line arguments 1337 * Parse command-line arguments
1338 */ 1338 */
1339 while ((opt = getopt(argc, argv, "bC:cdfi:l:mn:qr:st:")) != -1) { 1339 while ((opt = getopt(argc, argv, "bC:cdDfi:l:mn:qr:st:")) != -1) {
1340 switch (opt) { 1340 switch (opt) {
1341 case 'b': /* Use bytes written, not segments read */ 1341 case 'b': /* Use bytes written, not segments read */
1342 use_bytes = 1; 1342 use_bytes = 1;
1343 break; 1343 break;
1344 case 'C': /* copy log */ 1344 case 'C': /* copy log */
1345 copylog_filename = optarg; 1345 copylog_filename = optarg;
1346 break; 1346 break;
1347 case 'c': /* Coalesce files */ 1347 case 'c': /* Coalesce files */
1348 do_coalesce++; 1348 do_coalesce++;
1349 break; 1349 break;
1350 case 'd': /* Debug mode. */ 1350 case 'd': /* Debug mode. */
1351 nodetach++; 1351 nodetach++;
1352 debug++; 1352 debug++;