f5b48500f1
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@.
23 lines
341 B
Makefile
23 lines
341 B
Makefile
# $NetBSD: Makefile,v 1.5 2009/06/05 21:52:31 haad Exp $
|
|
|
|
WARNS?= 3 # XXX: sign-compare issues
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG=resize_lfs
|
|
SRCS=resize_lfs.c partutil.c
|
|
MAN=resize_lfs.8
|
|
|
|
FSCK=${NETBSDSRCDIR}/sbin/fsck
|
|
CPPFLAGS+=-I${FSCK}
|
|
|
|
DPADD+= ${LIBUTIL}
|
|
LDADD+= -lutil
|
|
|
|
LDADD+=-lprop
|
|
DPADD+=${LIBPROP}
|
|
|
|
.PATH: ${FSCK}
|
|
|
|
.include <bsd.prog.mk>
|