Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / vol / namei_map.c
blob175f172c6caaf7f8cb5e2de5f664703d64a7c0cf
1 #include <afsconfig.h>
2 #include <afs/param.h>
4 #include <roken.h>
6 #include <afs/afsutil.h>
8 int main(int argc, char **argv) {
9 lb64_string_t tmp;
11 unsigned long vol;
12 if (argc < 2) { fprintf(stderr, "Usage: nametodir vol\n"); exit(1); }
13 vol=strtoul(argv[1], NULL, 0);
14 (void)int32_to_flipbase64(tmp, (int64_t) (vol & 0xff));
15 printf("Component is %s\n", tmp);
16 (void)int32_to_flipbase64(tmp, (int64_t) vol);
17 printf("Component is %s\n", tmp);
19 exit(0);