Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2002 10:13:58 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Julian Stacey <jhs@berklix.com>
Cc:        Paolo Pisati <p.pisati@oltrelinux.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Hey, is there space for a newbie? =)
Message-ID:  <20020925151358.GD16302@dan.emsphone.com>
In-Reply-To: <200209250958.g8P9wXE10208@flip.jhs.private>
References:  <20020924175642.GB87963@southcross.skynet.org> <200209250958.g8P9wXE10208@flip.jhs.private>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 25), Julian Stacey said:
> > -a fs with journaling: some times ago, i would like to develop my
> > own fs with journaling, but right now i could even drop the dream
> > of my own fs and JUST port the xfs/jfs for FreeBSD..
> 
> Journaling would support user level "Undelete" I presume ?  That
> would make BSD more attractive to Micro$oft users, used to the luxury
> of "Undelete".

You don't need journaling for undelete capability.  When you delete a
file on Netware, the file is simply marked "deleted" but the filename
stays in the directory, and duplicate deleted filenames are allowed. 
When true free disk space gets low, deleted files are purged in the
background, oldest first (I believe).  There is an API for listing,
salvaging, and manually purging deleted files.  I know Netware 3 had
salvage capabilities, and it certainly didn't have a journalling FS :)

You might be able to misuse the Whiteout file type in FFS to present a
similar user interface.  unlink(2) would rename the file to
filename.timestamp and whiteoute it.  ls -W, rm -W, and rm would list,
salvage, and purge, respectively.  Since S_IFWHT is a filetype, you
would have to only allow file deletion, or encode the original filetype
somewhere else.

Alternatively, you could add a file flag equivalent to whiteout. 
"invisible" or something, and use chflags to salvage.

-- 
	Dan Nelson
	dnelson@allantgroup.com

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




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