Unable to create ZFS Datasets with . or / in the name
This project has moved to github - see https://github.com/freenas
Brought to you by:
cochard,
mattolander
Attempting to create a ZFS Dataset using the WebGUI containing a '.' or '/' character results in the following error:
[quote]The following input errors were detected:
* The attribute 'Name' may only consist of the characters a-z, A-Z, 0-9.[/quote]
ZFS Datasets can be created without error using SSH, for example:
[quote]zfs create pool0/staff/first.last[/quote]
I found that changing the following lines in /usr/local/www/disks_zfs_dataset_edit.php:
to read:
allows me to create ZFS Datasets using the WebGUI, until the next reboot.
Ginggs is correct. You should be able to create Datasets with a period '.'. However / is not technically part of the name but creates a new nested file system. But, if the parent does not exist for the Dataset zfs create will error out and let you know about that. So care must be taken to ensure the Dataset exists as well so the command does not fail.
Also, I forgot to add this link:
http://docs.sun.com/app/docs/doc/819-5461/gbcpt?a=view
This is the documented Naming Requirements from Sun.
Ginggs thanks,
changes are committed to the svn (rev:5514).
Regards,
Michael Zoon