zfsboot and zfsloader: normalization of filesystem names

Andriy Gapon avg at FreeBSD.org
Sat Oct 6 20:09:42 UTC 2012


on 26/09/2012 16:41 John Baldwin said the following:
> On Saturday, September 22, 2012 1:03:27 pm Andriy Gapon wrote:
>>
>> Currently zfsboot uses the following format to specify a ZFS filesystem name in
>> a full file path:
>> poolname:filesystem/name:/path/to/file
>> ZFS loader uses this format:
>> zfs:poolname/filesystemname:/path/to/file
>>
>> The following patchset:
>> http://people.freebsd.org/~avg/zfs-boot-naming.diff
>> unifies the naming.
>> zfsboot format will be: poolname/filesystemname:/path/to/file
>> Note that it is still different from zfsloader - "zfs:" prefix is missing.  This
>> is because unlike the loader zfsboot supports only ZFS filesystem, so the prefix
>> is redundant.  But I can still add support for it if there is a popular request.
> 
> I think this idea sounds sound.  You could easily let zfsboot support both by just
> having it skip over a 'zfs:' prefix if it sees one.
> 

OK, I implemented this suggestion and committed the code.
Thank you!

-- 
Andriy Gapon


More information about the freebsd-fs mailing list