aboutsummaryrefslogtreecommitdiff
path: root/sbin/ffsinfo/ffsinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ffsinfo/ffsinfo.c')
-rw-r--r--sbin/ffsinfo/ffsinfo.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c
index 9d447d209ffd..842d5c20bad0 100644
--- a/sbin/ffsinfo/ffsinfo.c
+++ b/sbin/ffsinfo/ffsinfo.c
@@ -41,18 +41,6 @@
*
*/
-#ifndef lint
-static const char copyright[] =
-"@(#) Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz\n\
-Copyright (c) 1980, 1989, 1993 The Regents of the University of California.\n\
-All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
-
/* ********************************************************** INCLUDES ***** */
#include <sys/param.h>
#include <sys/disklabel.h>
@@ -198,27 +186,18 @@ main(int argc, char **argv)
* No path prefix was given, so try in this order:
* /dev/r%s
* /dev/%s
- * /dev/vinum/r%s
- * /dev/vinum/%s.
*
- * FreeBSD now doesn't distinguish between raw and block
+ * FreeBSD now doesn't distinguish between raw and block
* devices any longer, but it should still work this way.
*/
- len = strlen(device) + strlen(_PATH_DEV) + 2 + strlen("vinum/");
+ len = strlen(device) + strlen(_PATH_DEV) + 2;
special = (char *)malloc(len);
if (special == NULL)
errx(1, "malloc failed");
snprintf(special, len, "%sr%s", _PATH_DEV, device);
if (stat(special, &st) == -1) {
+ /* For now this is the 'last resort' */
snprintf(special, len, "%s%s", _PATH_DEV, device);
- if (stat(special, &st) == -1) {
- snprintf(special, len, "%svinum/r%s",
- _PATH_DEV, device);
- if (stat(special, &st) == -1)
- /* For now this is the 'last resort' */
- snprintf(special, len, "%svinum/%s",
- _PATH_DEV, device);
- }
}
device = special;
}