Whamcloud - gitweb
b=16437
[fs/lustre-release.git] / lustre / tests / opendevunlink.c
index 8250f96..15ac708 100644 (file)
@@ -2,7 +2,9 @@
  * vim:expandtab:shiftwidth=8:tabstop=8:
  */
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include <stdio.h>
 #include <errno.h>
@@ -100,10 +102,14 @@ int main(int argc, char **argv)
                 exit(1);
         }
 
+#if 0
+        /* We cannot do this any longer, we do not store open special nodes
+         * on MDS after unlink */
         if (st1.st_mode != st2.st_mode) {  // can we do this?
                 fprintf(stderr, "fstat different value on %s and %s\n",                                 dname1, dname2);
                 exit(1);
         }
+#endif
 
         fprintf(stderr, "Ok, everything goes well.\n");
         return 0;