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"
36 #include <afs/afs_assert.h>
39 char *prog
= "nicreate";
40 IHandle_t
*GetLinkHandle(char *part
, int volid
);
45 printf("Usage: %s partition RWvolid p1 p2 p3 p4\n", prog
);
49 main(int ac
, char **av
)
67 if (p2
== -1 && p3
== VI_LINKTABLE
)
70 lhp
= GetLinkHandle(part
, volid
);
72 perror("Getting link handle.\n");
77 ino
= namei_icreate(lhp
, part
, p1
, p2
, p3
, p4
);
78 if (!VALID_INO(ino
)) {
79 perror("namei_icreate");
81 printf("Returned inode %s\n", PrintInode(NULL
, ino
));
85 #endif /* AFS_NAMEI_ENV */