1 .TH lustreapi 3 "2009 Jul 10" The Lustre user application interface library
3 llapi_unlink_foreign \- unlink file/dir with foreign layout on a Lustre filesystem
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_unlink_foreign(char *" name ");"
13 .B llapi_unlink_foreign(\|)
14 will allow to unlink a file/dir of
16 with foreign LOV/LMV, that would be prevented to be using regular unlink/rmdir
18 It also works for regular file/dir.
21 .B llapi_unlink_foreign(\|)
28 on failure, the absolute value is an error code.
37 may not point to a Lustre filesystem.
44 #include <lustre/lustreapi.h>
46 int main(int argc, char **argv)
51 while ((c = getopt(argc, argv, "hf:")) != -1) {
59 "Usage: %s [-f <foreign file/dir pathname>]\n",
66 if (foreign == NULL) {
67 fprintf(stderr, "a foreign file/dir pathname must be provided\n");
71 rc = llapi_unlink_foreign(foreign);
73 fprintf(stderr, "llapi_unlink_foreign() error: %d\n", rc);