Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757966Ab2ECRwB (ORCPT ); Thu, 3 May 2012 13:52:01 -0400 Received: from li9-11.members.linode.com ([67.18.176.11]:58121 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753637Ab2ECRv7 (ORCPT ); Thu, 3 May 2012 13:51:59 -0400 Date: Thu, 3 May 2012 13:51:44 -0400 From: "Ted Ts'o" To: Rob Landley Cc: Ludwig Nussel , linux-kernel@vger.kernel.org, "Jan Kara (maintainer:EXT2 FILE SYSTEM)" , "Andrew Morton (maintainer:EXT3 FILE SYSTEM)" , "Andreas Dilger (maintainer:EXT3 FILE SYSTEM)" , "open list:EXT2 FILE SYSTEM" , "open list:DOCUMENTATION" Subject: Re: [PATCH] implement uid and gid mount options for ext2, ext3 and ext4 Message-ID: <20120503175144.GH18002@thunk.org> Mail-Followup-To: Ted Ts'o , Rob Landley , Ludwig Nussel , linux-kernel@vger.kernel.org, "Jan Kara (maintainer:EXT2 FILE SYSTEM)" , "Andrew Morton (maintainer:EXT3 FILE SYSTEM)" , "Andreas Dilger (maintainer:EXT3 FILE SYSTEM)" , "open list:EXT2 FILE SYSTEM" , "open list:DOCUMENTATION" References: <1336036248-12980-1-git-send-email-ludwig.nussel@suse.de> <4FA2B0C1.4030206@landley.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FA2B0C1.4030206@landley.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on test.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1395 Lines: 30 On Thu, May 03, 2012 at 11:22:25AM -0500, Rob Landley wrote: > > When using 'real' file systems on removable storage devices such as > > hard disks or usb sticks people quickly face the problem that their > > Linux users have different uids on different machines. > > I still think this belongs at the VFS level, not in individual filesystems. I agree with Rob; as much as possible, this should be done at the VFS level. The problem is that there will need to be at least some support in the individual file system, since there isn't a good place for the VFS to intercept the internal file system iget() function to patch in the override uid/gid values. So the question at this point is whether it's cleaner to have the functionality split between the VFS and the file system layers (i.e., with the options parsing and storing the override uid/gid values in the super_block structure) or keeping it all in the file system layer, and accepting the duplication of code across multiple file systems. My preference leans towards the former (pushing as much as we can into the VFS layer), but I can see the other point of view. Regards, - Ted -- 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/