Home
last modified time | relevance | path

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

/dflybsd-src/usr.sbin/fstyp/
H A Dhammer.c136 test_volume(const char *volpath) in test_volume() argument
142 if ((fp = fopen(volpath, "r")) == NULL) in test_volume()
164 char *dup = NULL, *p, *volpath, *rootvolpath, x[HAMMER_MAX_VOLUMES]; in __fsvtyp_hammer() local
174 volpath = NULL; in __fsvtyp_hammer()
178 volpath = p; in __fsvtyp_hammer()
181 if ((volno = test_volume(volpath)) == -1) in __fsvtyp_hammer()
187 rootvolpath = volpath; in __fsvtyp_hammer()
192 volpath = rootvolpath; in __fsvtyp_hammer()
193 else if (!partial || !volpath) in __fsvtyp_hammer()
195 if ((fp = fopen(volpath, "r")) == NULL) in __fsvtyp_hammer()
[all …]
H A Dhammer2.c403 char *dup = NULL, *target_label = NULL, *p, *volpath, *rootvolpath; in __fsvtyp_hammer2() local
418 volpath = NULL; in __fsvtyp_hammer2()
422 volpath = p; in __fsvtyp_hammer2()
425 if ((fp = fopen(volpath, "r")) == NULL) { in __fsvtyp_hammer2()
426 warnx("hammer2: failed to open %s", volpath); in __fsvtyp_hammer2()
444 rootvolpath = volpath; in __fsvtyp_hammer2()
449 volpath = rootvolpath; in __fsvtyp_hammer2()
450 else if (!partial || !volpath) in __fsvtyp_hammer2()
452 if ((fp = fopen(volpath, "r")) == NULL) { in __fsvtyp_hammer2()
453 warnx("hammer2: failed to open %s", volpath); in __fsvtyp_hammer2()
[all …]