[Top] [All Lists]

Re: quick question about filename length

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: quick question about filename length
From: Chris Walker <christopher.walker@xxxxxxxxx>
Date: Sat, 16 May 2009 14:06:22 -0400
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ny0kcvEqeltiUh+Vig2IkNCgTqR2Obs53PJaFj8nU5g=; b=B7GZQ5tS1qR8iOUb5mf/Pu1+olloLWM0T+0KNoE2Z1Ws5INXtFK2TXhiVSXiMbLqH4 0h7jbnV90y/Vljtiv6sqhQIaWlc3KhBhchVvUIjcKhSFg/3JSaVVN3THT8z2rpAxA/ES vTjwxDKIU0e0Dsqd9QfN18+A9UHcqlMgOKkRo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=DZ3KkimUokzDrUMaFQgFI5SRVQENnUHFMji9zc0hP1PrVSHDQjqqxNb8Wn1DiEq4Ue /jajb5zMTzs85kAhy44xomIck97ikD6cQNyg8XzNGu/mciQc84tPFN3dLfaLtdZuln1h 1VFBR4U9p9HCcExEekJf4u1kZGbWfo00V1pyY=
In-reply-to: <4A0EF228.3010702@xxxxxxxxxxx>
References: <554e24be0905160915l49ff901bn41e4332349c555bc@xxxxxxxxxxxxxx> <4A0EF228.3010702@xxxxxxxxxxx>
Thanks for you quick reply, Eric.

I have a user who is having filenames (path+filename) cut off at 255
characters midway through a simulation -- but the problem must be

Thanks again,

On Sat, May 16, 2009 at 1:04 PM, Eric Sandeen <sandeen@xxxxxxxxxxx> wrote:
> Chris Walker wrote:
>> Hello,
>> I see that
>> #define MAXNAMELEN  256
>> Is this the maximum length of the filename with full path?  Or is this
>> just the name of the file?
>> Many thanks!
>> Chris
> /*
>  * MAXNAMELEN is the length (including the terminating null) of
>  * the longest permissible file (component) name.
>  */
> #define MAXNAMELEN      256
> "component" means path component.  So just the name of the file or dir
> in the path.
> See also how it's used in xfs_vn_lookup() for example:
>        if (dentry->d_name.len >= MAXNAMELEN)
>                return ERR_PTR(-ENAMETOOLONG);
> a dentry is one component of the path, not the entire path.
> -Eric

<Prev in Thread] Current Thread [Next in Thread>