From 42e01703dca788bba764956ba12647f3dcdd7ec9 Mon Sep 17 00:00:00 2001 From: semenu Date: Tue, 20 Apr 1999 21:06:44 +0000 Subject: Removed annoying messaged during boot,added some check before mounting (should help to do not mount extended partitions:-). Fixed problem with hanging while unmounting busy fs. And (the most important) added some locks to prevent simulaneous access to kernel structures! --- sys/fs/ntfs/ntfs_inode.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/fs/ntfs/ntfs_inode.h') diff --git a/sys/fs/ntfs/ntfs_inode.h b/sys/fs/ntfs/ntfs_inode.h index 2e6fb78..bf1e26c 100644 --- a/sys/fs/ntfs/ntfs_inode.h +++ b/sys/fs/ntfs/ntfs_inode.h @@ -55,17 +55,18 @@ #define IN_PRELOADED 0x4000 /* loaded from directory entry */ struct ntnode { - LIST_ENTRY(ntnode) i_hash; + LIST_ENTRY(ntnode) i_hash; struct ntnode *i_next; struct ntnode **i_prev; - struct ntfsmount *i_mp; + struct ntfsmount *i_mp; ino_t i_number; dev_t i_dev; u_int32_t i_flag; + int i_lock; int i_usecount; - LIST_HEAD(,fnode) i_fnlist; - struct ntvattr *i_vattrp; /* ntvattrs list */ + LIST_HEAD(,fnode) i_fnlist; + LIST_HEAD(,ntvattr) i_valist; long i_nlink; /* MFR */ ino_t i_mainrec; /* MFR */ @@ -77,7 +78,7 @@ struct ntnode { }; #define FN_PRELOADED 0x0001 -#define FN_DEFAULT 0x0002 +#define FN_VALID 0x0002 #define FN_AATTRNAME 0x0004 /* space allocated for f_attrname */ struct fnode { struct lock f_lock; /* Must be first */ -- cgit v1.1