public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Shane Nay <shane@agendacomputing.com>
To: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>,
	Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cramfs is ro only, so honour this in inode->mode
Date: Mon, 8 Jan 2001 12:13:39 +0000	[thread overview]
Message-ID: <0101081213390Z.02165@www.easysolutions.net> (raw)
In-Reply-To: <20010108141702.I10035@nightmaster.csn.tu-chemnitz.de>
In-Reply-To: <20010108141702.I10035@nightmaster.csn.tu-chemnitz.de>

Ingo,
> cramfs is a read-only fs. So we should honour that in inode->mode
> to avoid confusion of programs.
>
> My isofs shows this too, so I think I'm right deleting the write
> permissions in the inode. May be we should change it in
> mkcramfs (too).
>
> I don't know what POSIX says about RO fs, but I can't find any
> real sense in having W permissions for an RO fs.

The only sense I can derive from it is the situation that I'm in.  We use 
cramfs partitions for lots of stuff, but one of them is to hold mirrors of 
the "default" configuration of the user-area of our device.  (Flash)  It 
makes it easy to just copy over the base partitions knowing the permisions 
will stick right.

This may not initially seem like such a great thing..., but imagine a base 
distro being distributed as a cramfs file.  Copy the thing over to your HD 
and you're done, otherwise the distro packaging has to keep track of 
permisions for each file, etc.

On the other hand..., maybe I'm being "selfish", and this is the right way to 
go.  You never write to it, so why track the write bits?  (One answer is 
maybe later we can create a writable cramfs, but oh well)  Lord knows I could 
use a few extra bits in the cramfs inode.... (Using sticky bit to denote XIP 
mode binaries right now..., such a hack)

Thanks,
Shane Nay.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-08 13:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-08 13:17 [PATCH] cramfs is ro only, so honour this in inode->mode Ingo Oeser
2001-01-08 12:13 ` Shane Nay [this message]
2001-01-08 14:29   ` Ingo Oeser
2001-01-08 13:17     ` Shane Nay
2001-01-09 11:16       ` Albert D. Cahalan
2001-01-09 14:14         ` Doug McNaught
2001-01-09 22:03           ` Albert D. Cahalan
2001-01-09 22:33             ` Doug McNaught
2001-01-08 13:42     ` Alexander Viro
2001-01-08 16:59       ` Ingo Oeser
2001-01-08 17:37     ` Linus Torvalds
2001-01-09  1:25       ` Rusty Russell
2001-01-09  2:54         ` Linus Torvalds
2001-01-08 17:12 ` Linus Torvalds

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=0101081213390Z.02165@www.easysolutions.net \
    --to=shane@agendacomputing.com \
    --cc=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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