From 91ceeabbf1dc69ef372cae35bd73cb6b9f9a2358 Mon Sep 17 00:00:00 2001 From: hadaq Date: Tue, 14 Feb 2012 14:01:10 +0000 Subject: [PATCH] JAM: upgraded daq_disk to check if target partition is still accessible First committed version, to be tested. --- disks/daq_disks | Bin 46114 -> 47601 bytes disks/disks.c | 100 +++++++++++++++++++++++++++++++++++------------- 2 files changed, 73 insertions(+), 27 deletions(-) diff --git a/disks/daq_disks b/disks/daq_disks index 2eeb2f34ea7c193e38eee04b25cf8dc34a28aa7c..b99e3b97b037e11a6796b803eff0c7d9e4232145 100755 GIT binary patch delta 20219 zcmcJ134ByVwtm&^PP#kkkWNVGEI>LN5SFYELqKduf*n8!FlrRk4kVB$kQjoZf*lPw zv@H@SP;hw@MICfpV9=+cKok_lWd<2%2GP;r+AXNTag^uN$@@;-x}j<1z5oCHey`x( zQ|CKNomy|*rSniwJM|B(GbNEFyBQ_@%-A8ZVdSHe$5u#?8I&=X1USyoILef~tilV9 zcrOw5W|Smstw`X`M6c5FR(K`stq|q>YFD|g(_8MA8G}Ad&XFD#FYthGg3ho!&=i%= zS9FY`F`(ou14pjHh>XTjh{KFyI1Ve0Avl~kM&THSBOb?K97Z}%Wzs=Q85_jXkSW74 zP6>)Y$BValh6vte_faF5l*Ax$D&tVpZU{haDxVmJ#fIe*kRPOY7w7<$Cz7f1*@{{i zo6j^b191$+k*ownM&ii9k%gleM=B2LloA{xaE!%~grfil`52GG=vAr6%o<_k;_s$x z{+i%sXWnioga`f*Att2ktJh+1V$SDp zic@B1YGs7d6kUg%7MW4bqS6TI2jD5S;0O8mCTr^1a?8-~+@W+ZPIZmcpSYm~T;F^bff79?m1GYDUTR)pc&`8;dXDhr@8XW*F&c7;apXNY)dEry9zj!78s_f9e9do*1b&%z!R9MmimahhLo7 zRIgMaKXf58k~Ivc3xSaw{W!|cFi_Bxet|w$43R4g&on^L5n*^%7+x5L8~QITO(}=Gbl7b(5^6?_8Lao9)=eiAn1-T+_<8V z`1vq=Y=8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7NRXAuYdFR0;{E${(@weEE_$sj7PK4 zPiu(uX|tJ^>~*BjtAfxr(zP$~d3zn)v)6XrEy9bj&tYj}mwQiCcqO8-Z^I&dAhj|4 zIO1m_AmtvAxyMLtKEJ%zQB?sg)lB$qe}=@vcggc4uD{Osot$-6@EN~%RBaa89}7nh zFo;@#Q^^}-f74LLeidd=6ggxpZ-!1HBiZlJ0%H4l(q*RAR)356ezUvQ;nRkb2_10{Z zG3hszL}D=mPVZOyVf7Ne5281{)E0Hl_NaZ|C@IBk-in{CoV4QS%O+H_+SLn|u3A_- gammWNR`Q$!1J&YT?bjcerL-Su&r;g2ywGd>f3C+BPyhe` diff --git a/disks/disks.c b/disks/disks.c index a425781..675c187 100644 --- a/disks/disks.c +++ b/disks/disks.c @@ -5,16 +5,21 @@ #include #include #include +#include #include "shmtrans.h" #include "worker.h" -#define BUFFSIZE = 10000 +#define BUFLEN 200 +#define NUMDISKS 22 +#define NUMEBS 16 + + FILE *popen(const char *, const char *); char *strdup(const char *); -const char data[22][8] = {"/data01", "/data02", "/data03", "/data04", "/data05", +const char data[NUMDISKS][8] = {"/data01", "/data02", "/data03", "/data04", "/data05", "/data06", "/data07", "/data08", "/data09", "/data10", "/data11", "/data12", "/data13", "/data14", "/data15", "/data16", "/data17", "/data18", "/data19", "/data20", @@ -24,38 +29,45 @@ const char space[] = " "; char diskNum[] = "diskNum"; -int data_disks[22]; /* Available disk space */ +int data_disks[NUMDISKS]; /* Available disk space */ char shmemBase[] = "daq_evtbuild"; /* Base name for shared memory segments */ -int shmem_nums[16]; /* Numbers for found shared memory segments */ +int shmem_nums[NUMEBS]; /* Numbers for found shared memory segments */ int nrOfShmSegms; /* Total number of found shared memory segments */ typedef struct TheArgsS { - int excludeDisks[22]; + int excludeDisks[NUMDISKS]; int excludeDisksCnt; int sleepTime; /*seconds*/ + int testPartition; int debug; } TheArgs; static void usage(const char *progName) { - printf( "Usage: %s\n", progName); - printf( " [-h|--help] : Print this help.\n"); - printf( " [-e|--exclude ] : Nr of disk to exclude.\n"); - printf( " [-s|--sleep