From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D616DC43331 for ; Tue, 31 Mar 2020 21:41:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B208720838 for ; Tue, 31 Mar 2020 21:41:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731360AbgCaVlS (ORCPT ); Tue, 31 Mar 2020 17:41:18 -0400 Received: from mail-a09.ithnet.com ([217.64.83.104]:51457 "EHLO mail-a09.ithnet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbgCaVlS (ORCPT ); Tue, 31 Mar 2020 17:41:18 -0400 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Tue, 31 Mar 2020 17:41:16 EDT Received: (qmail 22882 invoked by uid 0); 31 Mar 2020 21:34:35 -0000 Received: from skraw.ml@ithnet.com by mail-a09 (Processed in 2.231369 secs); 31 Mar 2020 21:34:35 -0000 X-Virus-Status: No X-ExecutableContent: No Received: from dialin014-sr.ithnet.com (HELO ithnet.com) (217.64.64.14) by mail-a09.ithnet.com with ESMTPS (ECDHE-RSA-AES256-GCM-SHA384 encrypted); 31 Mar 2020 21:34:32 -0000 X-Sender-Authentication: SMTP AUTH verified Date: Tue, 31 Mar 2020 23:34:32 +0200 From: Stephan von Krawczynski To: linux-kernel@vger.kernel.org Subject: Path length and filename length linux deficiency Message-ID: <20200331233432.372f2f68@ithnet.com> Organization: ith Kommunikationstechnik GmbH X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello all, today I want to raise a topic that seems to have vanished completely since decades. It's the length limits of pathnames and filenames. One may wonder why to jump onto such a seemingly dead horse. But in fact it is not. We are in a world of continous growth of file services for clouds and other user space apps. And in this world a friend of mine tried to do something very simple: copying a file tree ... from a w*ndows file service to a linux server. And guess what: it does not work out. And the simple reason: the maximum path length in w*ndows systems is 32767, whereas linux (and POSIX) talk of a maximum of 4096 bytes. It is obvious then that linux is effectivly unable to hold a deep tree - whereas w*ndows can. Since I do know for sure it does not work, what are the true reasons? How can we completely drop these limits in linux (using a capable fs of course)? I already asked the samba list and was confirmed that the problem is known and that there is no easy solution for it. -- Regards, Stephan