From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.233] helo=mgw-mx06.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1JtGpU-0000o2-KJ for linux-mtd@lists.infradead.org; Tue, 06 May 2008 06:39:13 +0000 Subject: Re: [PATCH] mkfs.ubifs: support --squash-uids From: Artem Bityutskiy To: Hamish Moffatt In-Reply-To: <20080505084617.GA11042@cloud.net.au> References: <20080502051655.GA6654@cloud.net.au> <1209972672.3645.8.camel@sauron> <20080505084617.GA11042@cloud.net.au> Content-Type: text/plain; charset=utf-8 Date: Tue, 06 May 2008 09:38:36 +0300 Message-Id: <1210055916.3645.21.camel@sauron> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Cc: linux-mtd@lists.infradead.org Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2008-05-05 at 18:46 +1000, Hamish Moffatt wrote: > > Thanks for the patch. Before applying it, we'd like to know what do you > > expect to happen if -U is used simultaneously with the device table > > (-D). Should we use what device table says for directories which are > > created because they are specified in the device table, or we should us= e > > 0 anyway? Or we should just prohibit simultaneous usage of -U and -D ? >=20 > Good point. mkfs.jffs2 (from my reading of the source code) squashes=20 > ownership of files read from the specified root directory, but the > ownerships specified in the device table are still used. I think that > makes sense, because you can always specify 0:0 in the device table if > that's what you need. >=20 > However it's not what is implemented by my patch :-) Would you like me > to fix it up and resubmit, or will you? I applied the squashing at the > lowest level without realizing the effect on the device table. I've committed your patch and will do the "prefer dev. table" change later. Just a note - the patch was against some old mkfs.ubifs, so I had to do conflict resolution. Also note, we changed -p (--orph-lebs) option to -P at some point. You are unlikely using it - this is just for information. Thank you! --=20 Best regards, Artem Bityutskiy (=D0=91=D0=B8=D1=82=D1=8E=D1=86=D0=BA=D0=B8=D0=B9 =D0=90= =D1=80=D1=82=D1=91=D0=BC)