summaryrefslogtreecommitdiff
path: root/sbin/newfs_msdos
diff options
context:
space:
mode:
authorhaad <haad@NetBSD.org>2009-06-05 21:52:31 +0000
committerhaad <haad@NetBSD.org>2009-06-05 21:52:31 +0000
commitf5b48500f1089d675892504e2553046e3354ae10 (patch)
tree40c971804fa6a544411b12b97c077ffe264c741c /sbin/newfs_msdos
parentb05bf051db05da72f9059fa574669157e0e89c0a (diff)
Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info. Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk driver doesn't support it use old DIOCGDINFO. This patch adds support for wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and other tools. No objections on tech-userlevel@.
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r--sbin/newfs_msdos/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/Makefile b/sbin/newfs_msdos/Makefile
index 3224072b0ce..6327c3a19ea 100644
--- a/sbin/newfs_msdos/Makefile
+++ b/sbin/newfs_msdos/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2008/08/11 10:56:54 christos Exp $
+# $NetBSD: Makefile,v 1.5 2009/06/05 21:52:31 haad Exp $
# From: $FreeBSD: src/sbin/newfs_msdos/Makefile,v 1.5 2001/03/26 14:33:18 ru Exp $
.include <bsd.own.mk>
@@ -10,6 +10,9 @@ SRCS= newfs_msdos.c partutil.c
LDADD+= -lutil
DPADD+= ${LIBUTIL}
+LDADD+=-lprop
+DPADD+=${LIBPROP}
+
FSCK=${NETBSDSRCDIR}/sbin/fsck
CPPFLAGS+=-I${.CURDIR} -I${FSCK}
.PATH: ${FSCK}