From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Dike Subject: Re: ROOT_DEV usage in hostfs Date: Tue, 25 Jan 2005 13:30:51 -0500 Message-ID: <200501251830.j0PIUprZ003579@ccure.user-mode-linux.org> References: <20050125091039.GA32409@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: pasky@ucw.cz, linux-fsdevel@vger.kernel.org Return-path: Received: from pool-151-203-197-142.bos.east.verizon.net ([151.203.197.142]:3076 "EHLO ccure.user-mode-linux.org") by vger.kernel.org with ESMTP id S261969AbVAYQHP (ORCPT ); Tue, 25 Jan 2005 11:07:15 -0500 To: Christoph Hellwig In-Reply-To: Your message of "Tue, 25 Jan 2005 10:10:39 +0100." <20050125091039.GA32409@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org hch@lst.de said: > Could someone explain why hosts does thnings like: > if((ino->i_sb->s_dev == ROOT_DEV) && (ino->i_uid == getuid())) > ino->i_uid = 0; Don't let that stop you unexporting ROOT_DEV. It was a nasty kludge to make booting from a host filesystem kind of work. It would flip permissions around in order to make everything in the root filesystem owned by root, when the real ownership on the host is some normal user. I have a better way of doing ownerships properly, so this was going to die anyway. Jeff