xfs
[Top] [All Lists]

RE: Files with non-ASCII names inaccessible after xfs_repair

To: Michael Weissenbacher <mw@xxxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: RE: Files with non-ASCII names inaccessible after xfs_repair
From: Shaun Gosse <sgosse@xxxxxxx>
Date: Thu, 16 Jan 2014 21:11:15 +0000
Accept-language: en-US
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <52D84757.9080907@xxxxxxxxxxxx>
References: <20140113192732.GI3469@dastard> <0E45339E-04C4-4775-B6B0-FC55245B0AED@xxxxxxxxxxxx> <20140114022414.GM3469@dastard> <BE0C947E-37DE-4CA1-B120-59B95E1E8EB8@xxxxxxxxxxxx> <20140115015350.GR3469@dastard> <61E74CEF-8244-4E90-BA7D-91D54DADC3C1@xxxxxxxxxxxx> <20140115034803.GT3469@dastard> <1E5E569C-2E11-42A1-A771-89D4800BC412@xxxxxxxxxxxx> <20140115063722.GW3469@dastard> <52D6AF1A.8010604@xxxxxxxxxxx> <20140115210803.GX3469@dastard> <52D84757.9080907@xxxxxxxxxxxx>
Thread-index: AQHPD5o5WlzwS4DA1UaTKKzNEQvK4ZqB0vkAgAASeYCAAGOAgIAADNaAgAAMOICAAAe9gIABBqYAgAA9dQCAADb3AIAADWGAgAF8dgCAAAGNgIAAHlyAgAAcwICAABKPAIAAm4gAgABXvICAAY7sgP//nVRQ
Thread-topic: Files with non-ASCII names inaccessible after xfs_repair
> That's easy actually, since ASCII is a 7-bit code it can only contain char 
> values between 0-127 or in other words the highest bit must not be set in any 
> char. But probably this strict check could break other stuff.

As long as you exclude extended ascii and data corruption, I don't know what 
else that could break. My guess would be that ASCII as understood by XFS users 
would be the 0-127 and not the various mix of extensions. If you want to 
include support for extended ascii...then I don't think there's any way to 
determine non-probabilistically the difference between ASCII and UTF based on 
the data itself.

I have no idea what the current behavior is with respect to extended ASCII 
(whether it's supported, or works, or anything).

Cheers,
-Shaun

-----Original Message-----
From: xfs-bounces@xxxxxxxxxxx [mailto:xfs-bounces@xxxxxxxxxxx] On Behalf Of 
Michael Weissenbacher
Sent: Thursday, January 16, 2014 2:56 PM
To: xfs@xxxxxxxxxxx
Subject: Re: Files with non-ASCII names inaccessible after xfs_repair

Hi!
>
> The utf-8 patches add a "is this valid utf-8" check to all the 
> operations that care. We could probably do that for the ASCII-CI stuff 
> if you can define what ASCII means....
>
That's easy actually, since ASCII is a 7-bit code it can only contain char 
values between 0-127 or in other words the highest bit must not be set in any 
char. But probably this strict check could break other stuff.

cheers,
Michael

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs

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