*BSD News Article 18914


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!koriel!sh.wide!wnoc-tyo-news!rena!cnvxjp!omnis.co.jp!specgw!amurai
From: amurai@spec.co.jp (Atsushi MURAI)
Newsgroups: comp.os.386bsd.bugs
Subject: [Patch] ISOFS with Rock Ridge Ext. (1/1)
Message-ID: <CArpwE.1D1@specgw.spec.co.jp>
Date: 26 Jul 93 10:45:50 GMT
Sender: amurai@specgw.spec.co.jp (Atsushi MURAI)
Followup-To: comp.os.386bsd.bugs
Organization: System Planning and Engineering Corporation, Tokyo, Japan
Lines: 51
X-Newsreader: mnews [version 1.16PL1]


Hi, all.

  Here is just short patch for "[Source] ISOFS with Rock Ridge Ext."
that I posted last week. After I post them, I try to investigate a bad
performance as I mentioned the Readme and found a problem which is
caused by mostly missing namei/inode cache of isofs - it's came from
orignal source code. (Wao Wao - You can say that again ;-)

  I hope you will get a reasonable performance without any problem..

Enjoy,

Atsushi.
------------------------------- Cut from here ------------------------------
*** isofs_node.c.930719	Thu Jul 22 14:24:36 1993
--- isofs_node.c	Thu Jul 22 15:46:50 1993
***************
*** 234,241 ****
  	 * If we are done with the inode, reclaim it
  	 * so that it can be reused immediately.
  	 */
! 	if (vp->v_usecount == 0 /* && ip->i_mode == 0 */)*/
! 		vgone(vp);
  	return (error);
  }
  
--- 234,250 ----
  	 * If we are done with the inode, reclaim it
  	 * so that it can be reused immediately.
  	 */
! 
! 	/*
! 	 * Whenever any inode is registered to HASH by the iso_iget,
!          * All inode purged here immediately ( v_usecount is 0 )
! 	 * It's too much penalty for cdrom, so I just comment out it.
!          * (I've confirmed purging them when hash is getting full.)
!          *
!          *                             amurai@spec.co.jp  July 22,'93
! 	 */
! 	/*if (vp->v_usecount == 0*/ /* && ip->i_mode == 0 *//*)*/
! 	/*	vgone(vp); */
  	return (error);
  }
  
------------------------------- Cut from here ------------------------------


Atsushi Murai                                         E-Mail: amurai@spec.co.jp
SPEC                                                  Voice : +81-3-3833-5341
System Planning and Engineering Corp.