Date: Tue, 17 May 2016 06:05:43 +1000 From: Peter Jeremy <peter@rulingia.com> To: Willem Jan Withagen <wjw@digiware.nl> Cc: "freebsd-fs@FreeBSD.org" <freebsd-fs@freebsd.org> Subject: Re: Bigger MAX_PATH (Was: Re: State of native encryption in ZFS) Message-ID: <20160516200543.GC42426@server.rulingia.com> In-Reply-To: <9ead4b28-9711-5e38-483f-ef9eaf0bc583@digiware.nl> References: <5736E7B4.1000409@gmail.com> <57378707.19425.B54772B@s_sourceforge.nedprod.com> <CAHM0Q_PGvBRbUFOhmin4RKaDKRTRJyjieuaZ5_tjPerK4eRz=w@mail.gmail.com> <57385356.4525.E728971@s_sourceforge.nedprod.com> <9ead4b28-9711-5e38-483f-ef9eaf0bc583@digiware.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <wjw@digiware.nl> 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 <sys/syslimits.h> */ > >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+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160516200543.GC42426>