From: shaver Date: Mon, 24 Feb 2003 21:48:20 +0000 (+0000) Subject: - store the FID for an open file in the request, so that replay can open by X-Git-Tag: v1_7_100~1^94~86 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2a2f5632d4c1187f038936e1f725c3030d1ad792;p=fs%2Flustre-release.git - 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) --- 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; +}