public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Hamish Moffatt <hamish@cloud.net.au>
To: Artem Bityutskiy <dedekind@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] mkfs.ubifs: support --squash-uids
Date: Mon, 5 May 2008 18:46:17 +1000	[thread overview]
Message-ID: <20080505084617.GA11042@cloud.net.au> (raw)
In-Reply-To: <1209972672.3645.8.camel@sauron>

On Mon, May 05, 2008 at 10:31:12AM +0300, Artem Bityutskiy wrote:
> 
> On Fri, 2008-05-02 at 15:16 +1000, Hamish Moffatt wrote:
> > mkfs.jffs2 and genext2fs both have a -U/--squash-uids switch which make
> > them ignore the uid/gids in the directory and set them to 0:0 instead.
> > 
> > Here's my implementation for mkfs.ubifs.
> > 
> > Signed-off-by: Hamish Moffatt <hamish@cloud.net.au>
> > 
> 
> 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 use
> 0 anyway? Or we should just prohibit simultaneous usage of -U and -D ?

Good point. mkfs.jffs2 (from my reading of the source code) squashes 
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.

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.

thanks,
Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>

  reply	other threads:[~2008-05-05  8:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02  5:16 [PATCH] mkfs.ubifs: support --squash-uids Hamish Moffatt
2008-05-05  7:31 ` Artem Bityutskiy
2008-05-05  8:46   ` Hamish Moffatt [this message]
2008-05-05  8:52     ` Artem Bityutskiy
2008-05-06 11:00       ` Artem Bityutskiy
2008-05-06  6:38     ` Artem Bityutskiy
2008-05-06  9:46       ` Hamish Moffatt
2008-05-06 10:23         ` Artem Bityutskiy
2008-05-08  0:16           ` Hamish Moffatt
2008-05-08  6:34             ` Artem Bityutskiy
2008-05-07 12:55         ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080505084617.GA11042@cloud.net.au \
    --to=hamish@cloud.net.au \
    --cc=dedekind@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox