Home
last modified time | relevance | path

Searched refs:volpath (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/usr.sbin/fstyp/
H A Dhammer.c140 test_volume(const char *volpath) in test_volume() argument
146 if ((fp = fopen(volpath, "r")) == NULL) in test_volume()
168 char *dup = NULL, *p, *volpath, *rootvolpath, x[HAMMER_MAX_VOLUMES]; in __fsvtyp_hammer() local
178 volpath = NULL; in __fsvtyp_hammer()
182 volpath = p; in __fsvtyp_hammer()
185 if ((volno = test_volume(volpath)) == -1) in __fsvtyp_hammer()
191 rootvolpath = volpath; in __fsvtyp_hammer()
196 volpath = rootvolpath; in __fsvtyp_hammer()
197 else if (!partial || !volpath) in __fsvtyp_hammer()
199 if ((fp = fopen(volpath, "r")) == NULL) in __fsvtyp_hammer()
[all …]
H A Dhammer2.c418 char *dup = NULL, *target_label = NULL, *p, *volpath, *rootvolpath; in __fsvtyp_hammer2() local
433 volpath = NULL; in __fsvtyp_hammer2()
437 volpath = p; in __fsvtyp_hammer2()
440 if ((fp = fopen(volpath, "r")) == NULL) { in __fsvtyp_hammer2()
441 warnx("hammer2: failed to open %s", volpath); in __fsvtyp_hammer2()
459 rootvolpath = volpath; in __fsvtyp_hammer2()
464 volpath = rootvolpath; in __fsvtyp_hammer2()
465 else if (!partial || !volpath) in __fsvtyp_hammer2()
467 if ((fp = fopen(volpath, "r")) == NULL) { in __fsvtyp_hammer2()
468 warnx("hammer2: failed to open %s", volpath); in __fsvtyp_hammer2()
[all …]