From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bedivere.hansenpartnership.com ([66.63.167.143]:59896 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbdBUAs7 (ORCPT ); Mon, 20 Feb 2017 19:48:59 -0500 Message-ID: <1487638135.2337.51.camel@HansenPartnership.com> Subject: Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount From: James Bottomley To: "J. R. Okajima" Cc: Djalal Harouni , Chris Mason , Theodore Tso , Josh Triplett , "Eric W. Biederman" , Andy Lutomirski , Seth Forshee , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Dongsu Park , David Herrmann , Miklos Szeredi , Alban Crequy , Al Viro , "Serge E. Hallyn" , Phil Estes Date: Mon, 20 Feb 2017 16:48:55 -0800 In-Reply-To: <23764.1486398277@jrobl> References: <1486235880.2484.17.camel@HansenPartnership.com> <1486235972.2484.19.camel@HansenPartnership.com> <4608.1486351540@jrobl> <1486363583.2496.63.camel@HansenPartnership.com> <23764.1486398277@jrobl> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, 2017-02-07 at 01:24 +0900, J. R. Okajima wrote: > James Bottomley: > > Yes, I know the problem. However, I believe most current linux > > filesystems no longer guarantee stable, for the lifetime of the > > file, inode numbers. The usual docker container root is overlayfs, > > which, similarly doesn't support stable inode numbers. I see the > > odd complaint about docker with overlayfs having unstable inode > > numbers, but none seems to have any serious repercussions. > > I think it serious. > Reusing the backend fs' inum is a good approach which Amir wrote. > Based on this, I'd suggest you to support the hardlinks. I realised as I was trimming down the vestigial inode properties in the patch that actually shiftfs does use the i_ino from the underlying for userspace. The reason why is that it comes from the getattr call in stat and that's fully what the underlying filesystem returns (including the inode number). James