[SSI] Re: ps bug fix.
Brought to you by:
brucewalker,
rogertsang
From: John B. <joh...@hp...> - 2002-08-16 18:03:19
|
Aneesh Kumar K.V wrote: > Hi, > > The debian potato with fileutils version 4.0l-8 was doing an lseek on > /proc dir. In the case of SSI this gives undesirable errors . The > following patch add a dummy lseek for /proc dir under SSI. I am not sure > whether it is the right way of solving the issue > > -aneesh I'm looking into this. Can you tell me what version of glibc you are using. I'm trying to find out why the SEEK_SET is getting done. John > > Index: ssi-kernel/cluster/ssi/vproc/procfs_subr.c > =================================================================== > RCS file: /cvsroot/ssic-linux/ssic-linux/ssi-kernel/cluster/ssi/vproc/procfs_subr.c,v > retrieving revision 1.4 > diff -r1.4 procfs_subr.c > 174a175,180 > >>loff_t ssi_proc_root_llseek(struct file *file, loff_t offset, int orgin) >>{ >> >> return file->f_pos; >>} >> > > Index: ssi-kernel/fs/proc/root.c > =================================================================== > RCS file: /cvsroot/ssic-linux/ssic-linux/ssi-kernel/fs/proc/root.c,v > retrieving revision 1.2 > diff -r1.2 root.c > 111a112 > >> llseek: ssi_proc_root_llseek, > > Index: ssi-kernel/include/linux/vproc.h > =================================================================== > RCS file: /cvsroot/ssic-linux/ssic-linux/ssi-kernel/include/linux/vproc.h,v > retrieving revision 1.9 > diff -r1.9 vproc.h > 232a233 > >>loff_t ssi_proc_root_llseek(struct file *, loff_t , int ); > > > > > |