> > ? ? ? ?6582167 Drive letter and volume label support > > ? ? ? ?Windows allows volumes to be named and some Windows applications > ? ? ? ?embed the volume name in files, which can cause problems after > ? ? ? ?network volume migration from, say, Samba to the CIFS service. > ? ? ? ?For example, the Thumbs Plus photo indexing application keeps > ? ? ? ?track of non-local volumes by volume label since network drives > ? ? ? ?can show up on different drive letters. ?After switching from > ? ? ? ?Samba to the CIFS service, the volume label changed, which > ? ? ? ?invalidated the Thumbs Plus application database containing all > ? ? ? ?the keyword-to-image mapping information. ?It is desirable to > ? ? ? ?provide a property to allow users to label a ZFS dataset. > > ? ? ? ?Server-side drive letters are required by some over-the-wire Windows > ? ? ? ?backup applications. ?When these applications convert a share name > ? ? ? ?to the absolute path on the server the path must be prefixed by a > ? ? ? ?server-side drive letter. > > > ? ? ? ? ? ? ? ?label=[<drive-letter>:]name > > ? ? ? ? ? ? ? ?Specifies a name for this file system. ?The name cannot > ? ? ? ? ? ? ? ?contain control characters (values 0x00 through 0x31) or > ? ? ? ? ? ? ? ?any of the following characters: > > ? ? ? ? ? ? ? ?< > : " / \ | ? * , > > ? ? ? ? ? ? ? ?Optionally, the name may be prefixed by an alphabetic > ? ? ? ? ? ? ? ?character (drive letter) and a colon. ?The drive letter > ? ? ? ? ? ? ? ?may be used by clients as an alias for the volume name. > > ? ? ? ? ? ? ? ?The default value of the label property will be the final > ? ? ? ? ? ? ? ?component of the mountpoint property, and there is no > ? ? ? ? ? ? ? ?requirement for the label to be unique on the server. > ? ? ? ? ? ? ? ?This is a non-inheritable value. >
Label and drive letter sound to me like a parameters of SMB share, rather than ZFS dataset. They make perfect sense while used to share something other than ZFS filesystem as well. If so, they can be used for ZFS with its sharesmb property. For example zfs set sharesmb=name=photos,label=h:volume4 tank/export/photos That would be similar to sharenfs property used to set any non-default share parameters. Does it make any sense or I am completely off ? -- Regards, Cyril