* Changing a file system from case sensitive to case insensitive...
@ 2009-08-24 12:14 Linda A. Walsh
2009-08-24 14:49 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Linda A. Walsh @ 2009-08-24 12:14 UTC (permalink / raw)
To: xfs-oss
I don't suppose this is possible after the file system is
already up and running?
Or...could be made possible?
Doesn't seem like an impossible problem on file systems that have
few or no collisions...
Is it possible or doable or just easy and I don't know about it?
Thanks...
-linda
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing a file system from case sensitive to case insensitive...
2009-08-24 12:14 Changing a file system from case sensitive to case insensitive Linda A. Walsh
@ 2009-08-24 14:49 ` Christoph Hellwig
2009-08-24 16:47 ` Linda A. Walsh
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2009-08-24 14:49 UTC (permalink / raw)
To: Linda A. Walsh; +Cc: xfs-oss
On Mon, Aug 24, 2009 at 05:14:11AM -0700, Linda A. Walsh wrote:
> I don't suppose this is possible after the file system is
> already up and running?
>
> Or...could be made possible?
It's not theoretically impossible, but not implemented right now.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing a file system from case sensitive to case insensitive...
2009-08-24 14:49 ` Christoph Hellwig
@ 2009-08-24 16:47 ` Linda A. Walsh
2009-08-24 17:41 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Linda A. Walsh @ 2009-08-24 16:47 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs-oss
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?
I know it's not what's there now, but there is a nice search
option in 'Gvim', 'smartcase', where if you use a lower case
search string, it finds strings of either case, but if you explicitly
have any letter capitalized, then it forces a case sensitive search.
That could be a recovery mechanism for conflicts, but would
likely involve more work...
-l
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing a file system from case sensitive to case insensitive...
2009-08-24 16:47 ` Linda A. Walsh
@ 2009-08-24 17:41 ` Christoph Hellwig
2009-08-24 18:37 ` Linda A. Walsh
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2009-08-24 17:41 UTC (permalink / raw)
To: Linda A. Walsh; +Cc: Christoph Hellwig, xfs-oss
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.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing a file system from case sensitive to case insensitive...
2009-08-24 17:41 ` Christoph Hellwig
@ 2009-08-24 18:37 ` Linda A. Walsh
0 siblings, 0 replies; 5+ messages in thread
From: Linda A. Walsh @ 2009-08-24 18:37 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs-oss
Christoph Hellwig wrote:
> foreach diretory {
> read the whole directory structure into memory
> rewrite the btree with the case insensitive hash
> }
---
Looks like a trivial shell script...;^)...
I'm sure there's a bash-app for that...
*sigh*
And here I thought it was as simple as setting a flag on disk.
Sounds like the implementation lends itself to having an extended-attr
to potentially set the option on a dir-by-dir basis
similar to the +d bit, though it would only apply to dirs and files
within -- but not subdirs (due to different mount locations)?
That might certainly be more flexible than a whole disk as well if it
is practical.
Then as the 'attr' was set, the hash could be rebuilt either inplace,
or created as a newdir with files being moved to the new dir.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-08-24 18:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-24 12:14 Changing a file system from case sensitive to case insensitive Linda A. Walsh
2009-08-24 14:49 ` Christoph Hellwig
2009-08-24 16:47 ` Linda A. Walsh
2009-08-24 17:41 ` Christoph Hellwig
2009-08-24 18:37 ` Linda A. Walsh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox