Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422968AbbENXYP (ORCPT ); Thu, 14 May 2015 19:24:15 -0400 Received: from mail-ig0-f173.google.com ([209.85.213.173]:34159 "EHLO mail-ig0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422910AbbENXYN (ORCPT ); Thu, 14 May 2015 19:24:13 -0400 MIME-Version: 1.0 In-Reply-To: <20150514220932.GC31808@samba2> References: <20150505052205.GS889@ZenIV.linux.org.uk> <20150511180650.GA4147@ZenIV.linux.org.uk> <20150513222533.GA24192@ZenIV.linux.org.uk> <20150514033040.GF7232@ZenIV.linux.org.uk> <20150514220932.GC31808@samba2> Date: Thu, 14 May 2015 16:24:13 -0700 X-Google-Sender-Auth: QQcRg_Tfw09oFIJG-msRlu9lrdg Message-ID: Subject: Re: [RFC][PATCHSET v3] non-recursive pathname resolution & RCU symlinks From: Linus Torvalds To: Jeremy Allison Cc: Al Viro , Linux Kernel Mailing List , linux-fsdevel , Christoph Hellwig , Neil Brown Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1839 Lines: 42 On Thu, May 14, 2015 at 3:09 PM, Jeremy Allison wrote: > > Of course we tell people to just set their filesystems > up using mkfs.xfs -n version=ci :-). So ASCII-only case-insensitivity is sufficient for you guys? Doing case-insensitive lookups at a vfs layer level wouldn't be impossible (add some new lookup flag, so it would *not* be per-filesystem, it would be per-operation!), but the *full* case-insensitivity space in utf-8 is too much to expect. Especially since different people have different opinions on what it even should be. What else is problematic? I think you want an error on symlinks in the middle, right? So that you can do those manually? I also assume you don't like to follow ".." due to containment issues? Adding (again per-lookup) flags for "no symlinks" and "no dotdot") would be trivial (much more so than the case insensitivity). Would you require "error out on non-ascii characters" too, to then handle the complex cases by hand? Obviously per-lookup flags means that you can't just use "stat()", it would be "fstatat()". I dunno. But it *may* be worth it to really try to give samba what it wants. Of course, if samba is happy doing all the name caching in user space, then that's not worth worrying about. And the reason I don't use samba myself is that I'm not a fan of network filesystems. I want my filesystems low-latency and right there on the local ssd, thank you very much. But if you have some local-machine benchmarkign thing you use, I guess I could use that to see what the profile looks like... Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/