From: "Olaf Frączyk" <olaf@cbk.poznan.pl>
To: Barry Naujok <bnaujok@sgi.com>
Cc: Martin Steigerwald <ms@teamix.de>, xfs@oss.sgi.com
Subject: Re: [RFC 0/2] Case-insensitive filename lookup for XFS
Date: Wed, 24 Oct 2007 10:41:30 +0200 [thread overview]
Message-ID: <1193215290.12133.16.camel@venus.local.navi.pl> (raw)
In-Reply-To: <op.t0oejdbf3jf8g2@pc-bnaujok.melbourne.sgi.com>
On Wed, 2007-10-24 at 10:34 +1000, Barry Naujok wrote:
> On Tue, 23 Oct 2007 22:22:21 +1000, Martin Steigerwald <ms@teamix.de> wrote:
>
> > Am Dienstag, 23. Oktober 2007 schrieb Barry Naujok:
> >
> > Hi Barry,
> >
> >> To allow case-insensitivity to be a mount option rather than
> >> a mkfs option, the hashes stored on disk are always case-folded.
> >> This is indicated by the new "unicode" bit in the superblock.
> >> This bit also associated with the presence of the case-folding
> >> table on disk.
> >
> > What would happen in the following scenario?
> >
> > mount -t xfs /dev/somedevice /mnt/tmp
> > touch /mnt/tmp/testfile
> > touch /mnt/tmp/Testfile
> > touch /mnt/tmp/TESTFILE
> >
> > mount -t xfs -o remount,ci /dev/somedevice /mnt/tmp
> > rm /mnt/tmp/testfile
>
> testfile would be deleted, Testfile and TESTFILE will remain.
> Subsequent rm's should remove the rest.
Or maybe testfile and Testfile will remain? If it is mounted as ci you
have no idea which one will be deleted.
IMO having this as mount option is broken by design. If you do it as
mkfs option then you avoid most of ugly problems.
1. What if you have the following code in your program
if (exists lala){
error=remove lala
if(error) die
if(!error) error=create lala
if(error) die
}
the create will fail, and it is clearly not expected behaviour.
2. What will ls show:
Test.txt
test.txt
TeSt.txt
when mount as ci?
3. Which one will be removed if you do rm on ci mounted filesystem?
4. If it were mkfs option you could avoid expensive filename lookups.
Just store all files in lowercase and on lookup convert the argument to
lowercase. If you want to preserve case you could use eg. file attribute
to store filename with case preserved.
Regards,
Olaf Frączyk
--
Olaf Frączyk <olaf@cbk.poznan.pl>
prev parent reply other threads:[~2007-10-24 9:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-23 7:53 [RFC 0/2] Case-insensitive filename lookup for XFS Barry Naujok
2007-10-23 10:01 ` Anton Altaparmakov
2007-10-23 10:07 ` Anton Altaparmakov
2007-10-24 7:39 ` Barry Naujok
2007-10-24 15:05 ` Anton Altaparmakov
2007-10-23 12:22 ` Martin Steigerwald
2007-10-24 0:34 ` Barry Naujok
2007-10-24 8:32 ` Martin Steigerwald
2007-10-24 8:41 ` Olaf Frączyk [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=1193215290.12133.16.camel@venus.local.navi.pl \
--to=olaf@cbk.poznan.pl \
--cc=bnaujok@sgi.com \
--cc=ms@teamix.de \
--cc=xfs@oss.sgi.com \
/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