From: <chrisl_ext3_user@cli.mailshell.com>
To: "Kiran-Kumar Muniswamy-Reddy" <kiran@cs.sunysb.edu>,
ext3-users@redhat.com, linux-fsdevel@vger.kernel.org
Subject: Re: FS-corruption on ext3 with HTrees
Date: Wed, 24 Sep 2003 12:23:03 -0700 [thread overview]
Message-ID: <1064431383.3f71ef17caa54@www.mailshell.com> (raw)
In-Reply-To: <Pine.GSO.4.53.0309241429500.18792@compserv2>
I am wondering is your versionfs GPL? If it is, why not just show me
the code?
It is very hard for others try to figure out what is wrong from your
description without the source. Detail is what matters.
Chris
>From Kiran-Kumar Muniswamy-Reddy <kiran@cs.sunysb.edu> on 24 Sep 2003:
> Hi,
>
> I'm working with Prof. Zadok on versionfs, a stackable versioning file
> system. I face some problems with the unlink operation on ext3 with
> htree.
>
> On an unlink, I make a copy of the file (version/backup) and unlink
> the original file. But some files that have been unlinked are "linked
> back" to another file. For example, on deleting the file 'foo', the
> file itself is deleted and its backup is made, but "foo" points to
> a seemingly unrelated inode.
>
> On fscking the file system, fsck reports that the inode which "foo"
> now points to has an incorrect refcount and increments that particular
> inode's ref-count to 2.
>
> There was a mail on ext3-users about a year ago reporting a similar
> problem:
>
> https://listman.redhat.com/archives/ext3-users/2002-October/msg00053.html
>
> I don't know if it was fixed.
>
> In my code, I'm using only vfs calls and do nothing that is specific
> to ext3. This works fine on ext3 and ext2 without HTrees, but this
> behavior occurs on ext3 with Htrees. Here's a high level description
> of what I'm doing in versionfs_unlink:
>
> * down the isem of parent directory
> * compute the name of the version file
> * lookup the name using lookup_one_len
> * create the version'ed file using vfs_create
> * open the original file using dentry_open
> * copy the data from the original file to the version file
> * close the original file and version file
> * upping the isem of the parent directory
> * call vfs_unlink as it would have been called normally
>
> Let me know if I'm doing something wrong.
>
> Thanks,
> Kiran,
> SUNY Stony Brook.
>
>
> _______________________________________________
> Ext3-users mailing list
> Ext3-users@redhat.com
> https://www.redhat.com/mailman/listinfo/ext3-users
>
prev parent reply other threads:[~2003-09-24 19:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-24 18:48 FS-corruption on ext3 with HTrees Kiran-Kumar Muniswamy-Reddy
2003-09-24 19:23 ` chrisl_ext3_user [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1064431383.3f71ef17caa54@www.mailshell.com \
--to=chrisl_ext3_user@cli.mailshell.com \
--cc=ext3-users@redhat.com \
--cc=kiran@cs.sunysb.edu \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox