From owner-freebsd-fs@freebsd.org Mon May 16 20:06:15 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C80EB3EF31 for ; Mon, 16 May 2016 20:06:15 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 492601AAD for ; Mon, 16 May 2016 20:06:14 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp59-167-167-3.static.internode.on.net [59.167.167.3]) by vps.rulingia.com (8.15.2/8.15.2) with ESMTPS id u4GK5nPV000925 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 May 2016 06:05:56 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id u4GK5iid028001 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 17 May 2016 06:05:44 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id u4GK5h0w028000; Tue, 17 May 2016 06:05:43 +1000 (AEST) (envelope-from peter) Date: Tue, 17 May 2016 06:05:43 +1000 From: Peter Jeremy To: Willem Jan Withagen Cc: "freebsd-fs@FreeBSD.org" Subject: Re: Bigger MAX_PATH (Was: Re: State of native encryption in ZFS) Message-ID: <20160516200543.GC42426@server.rulingia.com> References: <5736E7B4.1000409@gmail.com> <57378707.19425.B54772B@s_sourceforge.nedprod.com> <57385356.4525.E728971@s_sourceforge.nedprod.com> <9ead4b28-9711-5e38-483f-ef9eaf0bc583@digiware.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <9ead4b28-9711-5e38-483f-ef9eaf0bc583@digiware.nl> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2016 20:06:15 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2016-May-16 15:18:17 +0200, Willem Jan Withagen wrote: >Trying to port Ceph is also running into the limit in: >/usr/include/sys/syslimits.h: >#define NAME_MAX 255 /* max bytes in a file name */ > >but I also found: >/usr/include/stdio.h: >#define FILENAME_MAX 1024 /* must be <=3D PATH_MAX */ > >So take a pick?? There are two distinct limits: The maximum number of characters in a pathname component (ie the name seen in a directory entry): For UFS, this is 255 because the length is stored on disk in a uint8_t (I don't know the limit for ZFS). The other limit is the maximum number of characters in a pathname - PATH_MAX. This is used to dimension various buffers but isn't persistent on disk so you should be able to increase it by changing the relevant #defines and rebuilding everything. --=20 Peter Jeremy --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJXOigXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0JXsP/3kcHzh+YSnEjcbMb2eY7qSZ 0U5XU/DiK9ko2VpKELqw+y3cQoeyu0YT7IlvIVWqSDtb4NdJ5o/AcAtP7JO6c4ot JyMwOu1VvyFm9ZZ7cR9AGJ7GH0/YtcXBYTlXkrHqwi1vg18AhL0kFH+VD3uAQn/o 9bkLvJKxGaf5MSQyBoHY4jjBCHU2wN3+nu/ZS7ZZMJ27qYEyX1CCpqSoV4wpJIFC 1JUGz4lhhk+J1qdqN94AbnoD3iYos1HBIiFo8gzVCEngnzfFhSE9DIbTRH7HUQit EBmpi8fb3gCeOLTj1qmc0qE5MGLz2Y4m/GWoqMgkPpHq+957LYIihUEktfuviHdC 6xKDVuQBFqv3lrt1DaboRmobnEVBephKlTgpNoYM2z/n8oEgkEukQUGui+pArqFK RjN+pnLOzMyUoK1I39eRR1WN120KV7RdOEvIYdKZEZFKhtJ95yN4lxXseQrAAQ2C SA0NXoNW3VU5ZZGur0m7yRj8YbxHxCdB4rqAX0ppoPngo5nrTXJHtGTp1N4lRbvl Qzqk1Wq1CbejtY9i3VCSEWXK/d3tXnGGkDFu4Faq2rSoJwy2f7Mr2Kv88eq+dkwE JJlB555ZhdkIlCy+Ypt8N5TSEgxwm7pXVjXbr87YTL+hrG5nhJGSXhUSX3ZJvz4R 6ALzojz8wNTEh527wvXR =43s8 -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--