All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Kleikamp <shaggy@austin.ibm.com>
To: frederik@ofb.net
Cc: fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: jfs, special characters
Date: Sat, 26 Feb 2005 11:58:34 -0600	[thread overview]
Message-ID: <1109440714.8463.19.camel@localhost> (raw)
In-Reply-To: <20050226043439.GA16848@a5.repetae.net>

On Fri, 2005-02-25 at 20:34 -0800, Frederik Eaton wrote:
> Does JFS have problems with files with special characters in them?

Sometimes.  jfs attempts to store pathnames in 16-bit unicode, and uses
the mount option iocharset to determine what to convert to/from.

In the 2.4 kernel, the default value of iocharset is determined by the
kernel config option, CONFIG_NLS_DEFAULT.  If an existing pathname
exists that doesn't map to the iocharset, jfs has the problem you
describe.  Mounting with -o iocharset=utf8 should let you access any
existing files.

In the 2.6 kernel, the default was changed to store each byte of the
filename as a 16-bit value in the directory without using any
conversion.  There can still be a problem if an existing pathname has a
value with a non-zero high-order byte.  Again mounting with -o
iocharset=utf8 will let you access all files.

> $ ls
> ls: 04-The_Dark_Of_The_Matin?e.ogg: No such file or directory
> [1]$ rm 04-The_Dark_Of_The_Matin\?e.ogg
> rm: cannot lstat `04-The_Dark_Of_The_Matin?e.ogg': No such file or directory
> 
> Frederik

-- 
David Kleikamp
IBM Linux Technology Center


  parent reply	other threads:[~2005-02-26 17:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26  4:34 jfs, special characters Frederik Eaton
2005-02-26 16:51 ` Sonny Rao
2005-02-26 17:58 ` Dave Kleikamp [this message]
2005-02-27 23:00   ` Frederik Eaton
2005-02-28  4:47     ` Dave Kleikamp
2005-02-28  5:42       ` Frederik Eaton

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=1109440714.8463.19.camel@localhost \
    --to=shaggy@austin.ibm.com \
    --cc=frederik@ofb.net \
    --cc=linux-fsdevel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.