Re: One Filesystem vnode operations declare problem.

2003-01-06 Thread ouyang kai
From: Peter Wemm <[EMAIL PROTECTED]> It is up to the file system to get it right. The normal procedure is to use namei() which does VOP_LOOKUP() calls to each file system. As a side effect of doing a lookup, the file system itself returns a "new" vnode pointer that corresponds to the name being l

Re: One Filesystem vnode operations declare problem.

2002-12-07 Thread Peter Wemm
"ouyang kai" wrote: > >From: Peter Wemm <[EMAIL PROTECTED]> > >Undefined. The bubble sort that orders these could leave it in any > >state. > Woo. thank you. > In mi_startup(), the kernel will register those device/modules, and excute > the 'func' declared by SYSINIT, right? Yes. > I think the

Re: One Filesystem vnode operations declare problem.

2002-12-06 Thread ouyang kai
From: Peter Wemm <[EMAIL PROTECTED]> Undefined. The bubble sort that orders these could leave it in any state. Woo. thank you. In mi_startup(), the kernel will register those device/modules, and excute the 'func' declared by SYSINIT, right? I think the kernel will have not real "/" filesystem un

Re: One Filesystem vnode operations declare problem.

2002-12-06 Thread Peter Wemm
"ouyang kai" wrote: > >From: Peter Wemm <[EMAIL PROTECTED]> > >The name of the macro is a little strange, that is more of a historical > >relic where we used to declare these things in something called a 'linker > >set'. These days it is handled by a SYSINIT() function that registers the > >vnode

Re: One Filesystem vnode operations declare problem.

2002-12-06 Thread ouyang kai
From: Peter Wemm <[EMAIL PROTECTED]> The name of the macro is a little strange, that is more of a historical relic where we used to declare these things in something called a 'linker set'. These days it is handled by a SYSINIT() function that registers the vnode ops. I know in mi_startup(),the ke

Re: One Filesystem vnode operations declare problem.

2002-12-05 Thread Peter Wemm
"kai ouyang" wrote: > Hi, everybody, > I have some questions about FS vnode operations. > I found the filesystems always declare vnode operations by "VNODEOP_SET" > more than once. > For example: > In DEVFS: > VNODEOP_SET(devfs_vnodeop_opv_desc); > VNODEOP_SET(devfs_specop_opv_desc);

One Filesystem vnode operations declare problem.

2002-12-05 Thread kai ouyang
Hi, everybody, I have some questions about FS vnode operations. I found the filesystems always declare vnode operations by "VNODEOP_SET" more than once. For example: In DEVFS: VNODEOP_SET(devfs_vnodeop_opv_desc); VNODEOP_SET(devfs_specop_opv_desc); In FFS: VNODEOP_SET(ffs_vnodeop_opv_