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().
This commit is contained in:
dyoung 2009-06-26 16:55:46 +00:00
parent d2cb166562
commit 0d8ed264a1
1 changed files with 4 additions and 1 deletions

View File

@ -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 mount {
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_fhtovp(fhandle_t *, struct vnode **);
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 **);