Date: Sat, 16 Sep 2017 13:07:46 +0900 From: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> To: freebsd-current@freebsd.org Cc: jonathan@FreeBSD.org, julian@freebsd.org Subject: Re: extending the maximum filename length (pointer to patch)[request for input] Message-ID: <20170916130746.ed320ba753e5a32242778139@dec.sakura.ne.jp> In-Reply-To: <3C985916-3641-45B7-A721-C4F89A699B70@FreeBSD.org> References: <0154558d-b2ad-af97-3960-3e392678f709@freebsd.org> <CAG6CVpXxr%2B7j6dN0EUhQ95Rn9GQtakJOsAKCCyBoUJjfUU16Hw@mail.gmail.com> <8d04540b-6daf-aa13-5648-0ec2541cbae6@freebsd.org> <CAG6CVpWe5bUkU1CkpoSmeZ0jxH%2BKb67fy7VE=Lq7guBBTzeCJw@mail.gmail.com> <da31a2a2-03ea-47ac-4238-c97ad563e54c@freebsd.org> <3C985916-3641-45B7-A721-C4F89A699B70@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Sep 2017 14:46:12 -0230 "Jonathan Anderson" <jonathan@FreeBSD.org> wrote: > On 12 Sep 2017, at 14:38, Julian Elischer wrote: > > > $B!H".@'0lP$".".B?;zIdJ87oL>".EYE*J87oL\E*@'L?L>0lP$J87oMQCfJ80?<TF|J80?<T".J8;zIdVu3nMW5a;zId".EYD6".H,==8^P$;zIdA39!9i".".J87oE~2f".E*6&5}J87o".4G4G@'H]G=".9i".".J87oE~2f(B.txt$B!I(B > > (I have no idea what that says but apparently it's a real filename > > from a windows machine that blew up when written via samba.) > > Google Translate says, amusingly: > "This is a test file for the length of the file name. The purpose is to > name a file in Chinese or Japanese or Korean characters and require the > character to be longer than 85 characters and then copy the file into > our shared folder to see if it can copy the file To me" (.txt, I guess) > > No matter what number you choose for a path length, you're never going > to win against that specific user. :) Most people who doesn't know the "internals" would not matter how long "a character" is. So we'd better assuming the longest-possible character. At worst, file name string can contain shift-in / shift-out or charset change sequences, and become much longer (character sets specific). But if we decide the "filename standard" as UTF-8, it wouldn't be needed and 4 (6?) bytes/character would be sufficient. So if we decide max length on "UTF-8 characters" to be 256, 1536 "bytes" would be sufficient. *Possibly 5 and 6 bytes character in UTF-8 could be already prohibited. If so, 1024 bytes is sufficient. > > > Jon > -- > Jonathan Anderson > jonathan@FreeBSD.org > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170916130746.ed320ba753e5a32242778139>