From 2081ffffe524e5beca666f918838eae1094cfa1c Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 27 Feb 2004 07:09:36 +0000 Subject: [PATCH] - hook GNS vfsmounts into a list in the superblock - when the root (lustre) FS is unmounted, automatically unmount the underlying GNS mounts --- lustre/llite/llite_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index 4ad7333..d0447b1 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -41,6 +41,9 @@ struct ll_sb_info { spinlock_t ll_pglist_lock; unsigned long ll_pglist_gen; struct list_head ll_pglist; + + /* list of GNS mounts; protected by the dcache_lock */ + struct list_head ll_mnt_list; }; struct ll_readahead_state { @@ -127,6 +130,7 @@ void lprocfs_unregister_mountpoint(struct ll_sb_info *sbi); /* llite/dir.c */ extern struct file_operations ll_dir_operations; extern struct inode_operations ll_dir_inode_operations; +int fill_page_with_path(struct dentry *, struct vfsmount *, char **pagep); /* llite/namei.c */ int ll_objects_destroy(struct ptlrpc_request *request, struct inode *dir); -- 1.8.3.1