Changing a file system from case sensitive to case insensitive...
Christoph Hellwig
hch at infradead.org
Mon Aug 24 12:41:34 CDT 2009
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.
More information about the xfs
mailing list