Length of ZFS volume names

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Length of ZFS volume names

Shawn Webb-3
Hey FreeBSD peeps,

The zfs(8) manpage says that the maximum length of a dataset name is
MAXNAMELEN (256 bytes). I've created a ZFS volume that has a dataset
name length of 62. I don't see the ZFS volume in /dev/zvol and I
noticed this sanitized error in dmesg:

Aug 24 11:07:24 bh-build-01 kernel: [2395] ZFS WARNING: Unable to create ZVOL tank/bhyve/productname/dev/users/username/username-shortened_productname-dev-01/disk-01 (error=63).

So I'm left wondering, does devfs have a smaller limit than ZFS for
node paths?

Thanks,

--
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

GPG Key ID:          0xFF2E67A277F8E1FA
GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9  3633 C85B 0AF8 AB23 0FB2
https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Length of ZFS volume names

Michael Gmelin-2


> On 24. Aug 2020, at 17:20, Shawn Webb <[hidden email]> wrote:
>
> ´╗┐Hey FreeBSD peeps,
>
> The zfs(8) manpage says that the maximum length of a dataset name is
> MAXNAMELEN (256 bytes). I've created a ZFS volume that has a dataset
> name length of 62. I don't see the ZFS volume in /dev/zvol and I
> noticed this sanitized error in dmesg:
>
> Aug 24 11:07:24 bh-build-01 kernel: [2395] ZFS WARNING: Unable to create ZVOL tank/bhyve/productname/dev/users/username/username-shortened_productname-dev-01/disk-01 (error=63).
>
> So I'm left wondering, does devfs have a smaller limit than ZFS for
> node paths?
>

Might be related: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238112


> Thanks,
>
> --
> Shawn Webb
> Cofounder / Security Engineer
> HardenedBSD
>
> GPG Key ID:          0xFF2E67A277F8E1FA
> GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9  3633 C85B 0AF8 AB23 0FB2
> https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"