xfs
[Top] [All Lists]

Re: Changing a file system from case sensitive to case insensitive...

To: "Linda A. Walsh" <xfs@xxxxxxxxx>
Subject: Re: Changing a file system from case sensitive to case insensitive...
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 24 Aug 2009 13:41:34 -0400
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>
In-reply-to: <4A92C43B.1060604@xxxxxxxxx>
References: <4A928413.4050205@xxxxxxxxx> <20090824144904.GB20898@xxxxxxxxxxxxx> <4A92C43B.1060604@xxxxxxxxx>
User-agent: Mutt/1.5.19 (2009-01-05)
On Mon, Aug 24, 2009 at 09:47:55AM -0700, Linda A. Walsh wrote:
>
>
> Christoph Hellwig wrote: 
>> It's not theoretically impossible, but not implemented right now.
> ----
>       How difficult -- would it just be changing a flag
> in the super, in the simple case -- i.e. with the result that
> a user could lose access to any files of alternate cases?

The CI flag relaly only hcanges on thing in the on disk format, and
that is the hash used for calculating the directory b+tree indices.
So what you need to do is the following algorithm


foreach diretory {
        read the whole directory structure into memory
        rewrite the btree with the case insensitive hash
}

handling of conflicts would be a pretty natural fallout of this,
by checking for hash conflicts with the new case-sensitive flag.

<Prev in Thread] Current Thread [Next in Thread>