[Spam? ] Re: ZFS snapshot name length limit? (File name too long)

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Mar 11 13:08:16 UTC 2010


On Thu, Mar 11, 2010 at 02:00:11PM +0100, Michiel Detailleur wrote:
> >From looking at the code, I think you hitting this limit:
> >
> >This is FreeBSD limit caused by statfs structure:
> >
> >/*
> > * filesystem statistics
> > */
> >[...]
> >#define MNAMELEN        88              /* size of on/from name bufs */
> >[...]
> >
> >ZFS mounts snapshots on lookup and this is this mount that fails.
> >  
> So all that would need to be done to allow mounting snapshots with 
> longer names would be to increase this value? (I'm not a C programmer, 
> so bear with me :) )

Such change will break ABI compatibility with tools compiled on previous
FreeBSD versions. As you can see in sys/sys/mount.h this is the reason
we still keep ostatfs structure. I'll discuss the possibilities with
other FreeBSD committers and we will see what we can do about it.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20100311/d1389e52/attachment.pgp


More information about the freebsd-fs mailing list