Changeset 744
- Timestamp:
- 07/07/08 20:08:19 (2 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/include/fs/vfs.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/include/fs/vfs.h
r670 r744 31 31 #include <wait.h> 32 32 33 /* Include all virtual filesystem headers, so we don't repeat ourselves in source files. */ 34 #include <fs/super.h> 35 #include <fs/bcache.h> 33 36 #include <fs/exports.h> 34 37 … … 149 152 }; 150 153 151 #define SetVNodeDirty(vNode) (((vNode)->flags) |= VNODE_DIRTY) 154 static inline void SetVNodeDirty(struct VNode* vNode) 155 { 156 vNode->flags |= VNODE_DIRTY; 157 if (vNode->superBlock && vNode->superBlock->sbOps->dirtyVNode) 158 vNode->superBlock->sbOps->dirtyVNode(vNode); 159 } 152 160 153 161 /* FILE … … 183 191 int FillDir(void* dirEntry,char* name,int nameLen,DWORD vNodeNum); 184 192 193 /* Flags to pass to block map */ 194 #define VFS_MAP_CREATE 0x1 195 185 196 struct VNodeOps 186 197 { … … 191 202 int (*rmDir)(struct VNode* dir,char* name,int nameLength); 192 203 int (*permission)(struct VNode* vNode,int access); 193 int (*blockMap)(struct VNode* vNode, DWORD offset );204 int (*blockMap)(struct VNode* vNode, DWORD offset, int flags); 194 205 int (*truncate)(struct VNode* vNode, int size); 195 206 }; … … 236 247 int PollAddWait(struct PollQueue* pollQueue, WaitQueue* waitQueue); 237 248 238 /* Include all virtual filesystem headers, so we don't repeat ourselves in source files. */239 #include <fs/super.h>240 #include <fs/bcache.h>241 242 249 #endif
