From 2a2f5632d4c1187f038936e1f725c3030d1ad792 Mon Sep 17 00:00:00 2001 From: shaver Date: Mon, 24 Feb 2003 21:48:20 +0000 Subject: [PATCH] - store the FID for an open file in the request, so that replay can open by 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 lustre/tests/mlink.c diff --git a/lustre/tests/mlink.c b/lustre/tests/mlink.c new file mode 100755 index 0000000..5688b9f --- /dev/null +++ b/lustre/tests/mlink.c @@ -0,0 +1,25 @@ +#include +#include +#include +#include +#include +#include +#include + +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; +} -- 1.8.3.1