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

Michiel Detailleur md at scoutsengidsenvlaanderen.be
Tue May 25 13:22:09 UTC 2010


Pawel Jakub Dawidek schreef:
> 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.
>   
Hi Pawel,

Did you and the other committers have a chance to discuss this yet?

It would be nice if a fix for this could make it into 8.1 :)

Michiel


More information about the freebsd-fs mailing list