Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / vol / namei_map.c
blobe93b7f4686e6649a896ff73ff1c16d2c44779477
1 #include <afsconfig.h>
2 #include <afs/param.h>
4 #include <sys/types.h>
5 #include <inttypes.h>
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <afs/afsutil.h>
10 int main(int argc, char **argv) {
11 lb64_string_t tmp;
13 unsigned long vol;
14 if (argc < 2) { fprintf(stderr, "Usage: nametodir vol\n"); exit(1); }
15 vol=strtoul(argv[1], NULL, 0);
16 (void)int32_to_flipbase64(tmp, (int64_t) (vol & 0xff));
17 printf("Component is %s\n", tmp);
18 (void)int32_to_flipbase64(tmp, (int64_t) vol);
19 printf("Component is %s\n", tmp);
21 exit(0);