Haudy Kazemi
2009-08-12 23:17:44 UTC
Hello,
I'm wondering what are some use cases for ZFS's utf8only and
normalization properties. They are off/none by default, and can only be
set when the filesystem is created. When should they specifically be
enabled and/or disabled? (i.e. Where is using them a really good idea?
Where is using them a really bad idea?)
Looking forward, starting with Windows XP and OS X 10.5 clients, is
there any reason to change the defaults in order to minimize problems?
From the documentation at
http://dlc.sun.com/osol/docs/content/ZFSADMIN/gazss.html :
utf8only
Boolean
Off
This property indicates whether a file system should reject file names
that include characters that are not present in the UTF-8 character code
set. If this property is explicitly set to off, the normalization
property must either not be explicitly set or be set to none. The
default value for the utf8only property is off. This property cannot be
changed after the file system is created.
normalization
String
None
This property indicates whether a file system should perform a unicode
normalization of file names whenever two file names are compared, and
which normalization algorithm should be used. File names are always
stored unmodified, names are normalized as part of any comparison
process. If this property is set to a legal value other than none, and
the utf8only property was left unspecified, the utf8only property is
automatically set to on. The default value of the normalization property
is none. This property cannot be changed after the file system is created
Background: I've built a test system running OpenSolaris 2009.06 (b111)
with a ZFS RAIDZ1, with CIFS in workgroup mode. I'm testing with
Windows XP and Mac OS X 10.5 clients connecting via CIFS (no NFS or AFP).
I've set these properties during zfs create or immediately afterwards:
casesensitivity=mixed
compression=on
snapdir=visible
and ran this to set up nonrestrictive ACLs as suggested by Alan Wright
at the thread "[cifs-discuss] CIFS and permission mapping" at
http://opensolaris.org/jive/message.jspa?messageID=365620#365947
chmod A=everyone@:full_set:fd:allow /tank/home
Thanks!
-hk
I'm wondering what are some use cases for ZFS's utf8only and
normalization properties. They are off/none by default, and can only be
set when the filesystem is created. When should they specifically be
enabled and/or disabled? (i.e. Where is using them a really good idea?
Where is using them a really bad idea?)
Looking forward, starting with Windows XP and OS X 10.5 clients, is
there any reason to change the defaults in order to minimize problems?
From the documentation at
http://dlc.sun.com/osol/docs/content/ZFSADMIN/gazss.html :
utf8only
Boolean
Off
This property indicates whether a file system should reject file names
that include characters that are not present in the UTF-8 character code
set. If this property is explicitly set to off, the normalization
property must either not be explicitly set or be set to none. The
default value for the utf8only property is off. This property cannot be
changed after the file system is created.
normalization
String
None
This property indicates whether a file system should perform a unicode
normalization of file names whenever two file names are compared, and
which normalization algorithm should be used. File names are always
stored unmodified, names are normalized as part of any comparison
process. If this property is set to a legal value other than none, and
the utf8only property was left unspecified, the utf8only property is
automatically set to on. The default value of the normalization property
is none. This property cannot be changed after the file system is created
Background: I've built a test system running OpenSolaris 2009.06 (b111)
with a ZFS RAIDZ1, with CIFS in workgroup mode. I'm testing with
Windows XP and Mac OS X 10.5 clients connecting via CIFS (no NFS or AFP).
I've set these properties during zfs create or immediately afterwards:
casesensitivity=mixed
compression=on
snapdir=visible
and ran this to set up nonrestrictive ACLs as suggested by Alan Wright
at the thread "[cifs-discuss] CIFS and permission mapping" at
http://opensolaris.org/jive/message.jspa?messageID=365620#365947
chmod A=everyone@:full_set:fd:allow /tank/home
Thanks!
-hk