Module Name: src
Committed By: dyoung
Date: Fri Jun 26 16:55:46 UTC 2009
Modified Files:
src/sys/sys: mount.h
Log Message:
For use in subsequent commits, add a 64-bit generation number to
struct mount, and add prototypes for vfs_sync_all() and for
vfs_unmount_forceone().
To generate a diff of this commit:
cvs rdiff -u -r1.189 -r1.190 src/sys/sys/mount.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/mount.h
diff -u src/sys/sys/mount.h:1.189 src/sys/sys/mount.h:1.190
--- src/sys/sys/mount.h:1.189 Wed Apr 29 15:44:55 2009
+++ src/sys/sys/mount.h Fri Jun 26 16:55:46 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: mount.h,v 1.189 2009/04/29 15:44:55 dyoung Exp $ */
+/* $NetBSD: mount.h,v 1.190 2009/06/26 16:55:46 dyoung Exp $ */
/*
* Copyright (c) 1989, 1991, 1993
@@ -126,6 +126,7 @@
struct wapbl *mnt_wapbl; /* log info */
struct wapbl_replay
*mnt_wapbl_replay; /* replay support XXX: what? */
+ uint64_t mnt_gen;
};
/*
@@ -389,8 +390,10 @@
int vfs_mountedon(struct vnode *);/* is a vfs mounted on vp */
int vfs_mountroot(void);
void vfs_shutdown(void); /* unmount and sync file systems */
+void vfs_sync_all(struct lwp *);
bool vfs_unmountall(struct lwp *); /* unmount file systems */
bool vfs_unmountall1(struct lwp *, bool, bool);
+bool vfs_unmount_forceone(struct lwp *);
int vfs_busy(struct mount *, struct mount **);
int vfs_rootmountalloc(const char *, const char *, struct mount **);
void vfs_unbusy(struct mount *, bool, struct mount **);