From 0f1b6ef5a093637ae3908db91712ab3b164d3f85 Mon Sep 17 00:00:00 2001 From: hadaq Date: Mon, 27 Sep 2010 15:54:10 +0000 Subject: [PATCH] Option to exclude disks added. Sergey. --- disks/disks.c | 59 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/disks/disks.c b/disks/disks.c index 4d644c7..a425781 100644 --- a/disks/disks.c +++ b/disks/disks.c @@ -31,6 +31,8 @@ int shmem_nums[16]; /* Numbers for found shared memory segments int nrOfShmSegms; /* Total number of found shared memory segments */ typedef struct TheArgsS { + int excludeDisks[22]; + int excludeDisksCnt; int sleepTime; /*seconds*/ int debug; } TheArgs; @@ -38,9 +40,10 @@ typedef struct TheArgsS { static void usage(const char *progName) { printf( "Usage: %s\n", progName); - printf( " [-h|--help] : Print this help.\n"); - printf( " [-s|--sleep