Whamcloud - gitweb
- store the FID for an open file in the request, so that replay can open by
authorshaver <shaver>
Mon, 24 Feb 2003 21:48:20 +0000 (21:48 +0000)
committershaver <shaver>
Mon, 24 Feb 2003 21:48:20 +0000 (21:48 +0000)
  FID, in case the file has been deleted, etc.

- reconstruct replies for close (untested), link (tested), unlink (tested, but
  will leak OST objects until open-unlink works).

- quickie test program for link(2)

lustre/tests/mlink.c [new file with mode: 0755]

diff --git a/lustre/tests/mlink.c b/lustre/tests/mlink.c
new file mode 100755 (executable)
index 0000000..5688b9f
--- /dev/null
@@ -0,0 +1,25 @@
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <string.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+int main(int argc, char ** argv)
+{
+        int rc;
+
+        if (argc < 3) { 
+                printf("Usage: %s file link\n", argv[0]);
+                return 1;
+        }
+
+        rc = link(argv[1], argv[2]);
+        if (rc) { 
+                printf("link(%s, %s) error: %s\n", argv[1], argv[2],
+                      strerror(errno));
+               return errno;
+        }
+       return 0;
+}