[OpenAFS] afsd segfaults
Derek Atkins
openafs-info@openafs.org
28 Feb 2002 12:31:51 -0500
This looks fine for O-A 1.2.3. This is from your mandrake
kernel sources?
-derek
Ian D <ian@assv.net> writes:
> Derek Atkins <derek@ihtfp.com> writes:
>
> > compare the inode init in afs_NewVCache() in src/afs/afs_vcache.c
> > with init_once() in linux/fs/inode.c
>
> I can say this: I have no idea what I'm looking for in afs_NewVCache.
>
> init_once in fs/inode.c is:
>
> static void init_once(void * foo, kmem_cache_t * cachep, unsigned long
> flags)
> {
> struct inode * inode = (struct inode *) foo;
>
> if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) ==
> SLAB_CTOR_CONSTRUCTOR)
> {
> memset(inode, 0, sizeof(*inode));
> init_waitqueue_head(&inode->i_wait);
> INIT_LIST_HEAD(&inode->i_hash);
> INIT_LIST_HEAD(&inode->i_data.clean_pages);
> INIT_LIST_HEAD(&inode->i_data.dirty_pages);
> INIT_LIST_HEAD(&inode->i_data.locked_pages);
> INIT_LIST_HEAD(&inode->i_dentry);
> INIT_LIST_HEAD(&inode->i_dirty_buffers);
> INIT_LIST_HEAD(&inode->i_dirty_data_buffers);
> INIT_LIST_HEAD(&inode->i_devices);
> sema_init(&inode->i_sem, 1);
> sema_init(&inode->i_zombie, 1);
> spin_lock_init(&inode->i_data.i_shared_lock);
> }
> }
>
> >
> > -derek
> >
> > Ian D <ian@assv.net> writes:
> >
> > > Derek Atkins <derek@ihtfp.com> writes:
> > >
> > > > Have you compared the source files as I asked? If not, then do it.
> > > > Report what you find. No other report is interesting until you
> > > > report on the comparrison.
> > >
> > > Which file in the OpenAFS tree?
> > > --
> > > /Ian D
> > > ian@assv.net
> > >
> > > _______________________________________________
> > > OpenAFS-info mailing list
> > > OpenAFS-info@openafs.org
> > > https://lists.openafs.org/mailman/listinfo/openafs-info
> >
> > --
> > Derek Atkins
> > Computer and Internet Security Consultant
> > derek@ihtfp.com www.ihtfp.com
> >
>
> --
> /Ian D
> ian@assv.net
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
--
Derek Atkins
Computer and Internet Security Consultant
derek@ihtfp.com www.ihtfp.com