Skip site navigation (1)Skip section navigation (2)
Date:      03 May 2000 16:33:42 +0200
From:      Bjoern Groenvall <bg@sics.se>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        Bjoern Groenvall <bg@sics.se>, freebsd-fs@freebsd.org
Subject:   Re: A proposal : IFS
Message-ID:  <wuem7j1z5l.fsf@bg.sics.se>
In-Reply-To: Adrian Chadd's message of Wed, 3 May 2000 22:00:55 %2B0800
References:  <20000503040431.B53701@ewok.creative.net.au> <Pine.BSF.4.10.10005031717190.71327-100000@lion.butya.kz> <20000503185457.C53701@ewok.creative.net.au> <wuitwv245x.fsf@bg.sics.se> <20000503220053.D53701@ewok.creative.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Adrian Chadd <adrian@freebsd.org> writes:

> On Wed, May 03, 2000, Bjoern Groenvall wrote:
> > Adrian Chadd <adrian@FreeBSD.ORG> writes:
> > 
> > > An application which keeps an internal database of objects->filenames
> > > would simply continue to do so, but the filename is simply the inode number.
> > > WHen creating a file, it opens 'newfile' for create/write, which creates
> > > a new file. It then stat()s the fd to get the inode number, and records
> > > that. In squid case, it eliminates the need for keeping a bitmap of
> > > used file entries, since the FS does this anyway.
> > 
> > What about using fhopen and getfh instead? That way you won't have to
> > write a new filesystem. You will have to use file handles rather than
> > inode numbers though.
> 

> You still need to do a directory lookup in getfh(), and IFS
> filesystems take far less time to fsck.

"An application which keeps an internal database of objects->filenames
 would simply continue to do so, but the filename is simply the inode number."

So you don't have to do any directory lookups (except when you create
your pool of objects).

> But you still had the ondisk directory metadata and unlink()s couldn't
> be done with the inode number magic sequence, which is why I took it
> a step further and wrote IFS.

You don't have to perform any unlinks when an object is deleted, just
ftruncate the thing and return it to the free pool.

/Björn

-- 
  _     _                                               ,_______________.  
Bjorn Gronvall (Björn Grönvall)                        /_______________/|     
Swedish Institute of Computer Science                  |               ||
PO Box 1263, S-164 29 Kista, Sweden                    | Schroedingers ||
Email: bg@sics.se, Phone +46 -8 633 15 25              |      Cat      |/
Cellular +46 -70 768 06 35, Fax +46 -8 751 72 30       `---------------' 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?wuem7j1z5l.fsf>