2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * Test "inode" creation in the user space file system.
14 #include <afsconfig.h>
15 #include <afs/param.h>
26 #include <afs/afsutil.h>
28 #include <afs/afsint.h>
32 #include "viceinode.h"
34 #include "partition.h"
38 char *prog
= "nicreate";
39 IHandle_t
*GetLinkHandle(char *part
, int volid
);
44 printf("Usage: %s partition RWvolid p1 p2 p3 p4\n", prog
);
48 main(int ac
, char **av
)
66 if (p2
== -1 && p3
== VI_LINKTABLE
)
69 lhp
= GetLinkHandle(part
, volid
);
71 perror("Getting link handle.\n");
76 ino
= namei_icreate(lhp
, part
, p1
, p2
, p3
, p4
);
77 if (!VALID_INO(ino
)) {
78 perror("namei_icreate");
80 printf("Returned inode %s\n", PrintInode(NULL
, ino
));
84 #endif /* AFS_NAMEI_ENV */