Make LFS LKM versions of ufs_makeinode and ufs_mkdir fail correctly.

Note dependency of lfs_vnops.o on ufs_readwrite.c.
This commit is contained in:
perseant 2003-03-15 07:20:22 +00:00
parent df24bda908
commit b105ddb1d6
3 changed files with 18 additions and 7 deletions

View File

@ -1,14 +1,20 @@
# $NetBSD: Makefile,v 1.8 2001/12/12 12:06:50 lukem Exp $
# $NetBSD: Makefile,v 1.9 2003/03/15 07:20:22 perseant Exp $
.include "../Makefile.inc"
.PATH: $S/ufs/lfs
.PATH: $S/ufs/lfs $S/ufs/ufs
lfs_vnops.o: ufs_readwrite.c
COPTS+= -DLFS -Dufs_mkdir=lfs_ufs_mkdir -Dufs_makeinode=lfs_ufs_makeinode \
-Dufs_strategy=lfs_ufs_strategy -Dufs_whiteout=lfs_ufs_whiteout \
-Dufs_link=lfs_ufs_link -Dufs_rename=lfs_ufs_rename
KMOD= lfs
SRCS= lkminit_vfs.c
SRCS+= lfs_vfsops.c lfs_vnops.c lfs_subr.c
SRCS+= lfs_alloc.c lfs_balloc.c lfs_bio.c lfs_cksum.c lfs_debug.c
SRCS+= lfs_inode.c lfs_segment.c lfs_syscalls.c
SRCS+= ufs_vnops.c
.include <bsd.kmod.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: lkminit_vfs.c,v 1.5 2003/01/19 16:30:13 thorpej Exp $ */
/* $NetBSD: lkminit_vfs.c,v 1.6 2003/03/15 07:20:23 perseant Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lkminit_vfs.c,v 1.5 2003/01/19 16:30:13 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: lkminit_vfs.c,v 1.6 2003/03/15 07:20:23 perseant Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@ -46,7 +46,10 @@ __KERNEL_RCSID(0, "$NetBSD: lkminit_vfs.c,v 1.5 2003/01/19 16:30:13 thorpej Exp
#include <sys/file.h>
#include <sys/errno.h>
#define LFS
#ifndef LFS
# define LFS
#endif
#include <sys/syscall.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ufs_vnops.c,v 1.90 2003/02/17 23:48:23 perseant Exp $ */
/* $NetBSD: ufs_vnops.c,v 1.91 2003/03/15 07:20:22 perseant Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993, 1995
@ -41,10 +41,12 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.90 2003/02/17 23:48:23 perseant Exp $");
__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.91 2003/03/15 07:20:22 perseant Exp $");
#ifndef _LKM
#include "opt_quota.h"
#include "fs_lfs.h"
#endif /* _LKM */
#include <sys/param.h>
#include <sys/systm.h>