From: johan.adolfsson@axis.com
To: <quinlan@transmeta.com>, <linux-kernel@vger.kernel.org>
Cc: "Johan Adolfsson" <johan.adolfsson@axis.com>
Subject: Re: [PATCH and RFC] Compact time in cramfs
Date: Thu, 25 Apr 2002 10:39:12 +0200 [thread overview]
Message-ID: <00a001c1ec34$ad5703a0$adb270d5@homeip.net> (raw)
In-Reply-To: <Pine.LNX.4.33.0204241009040.24998-100000@ado-2.axis.se> <15559.17638.605450.368606@transmeta.com>
Daniel Quinlan writes:
> Johan Adolfsson writes:
>
> > The following patch gives a cramfs filesystem a single timestamp
> > stored in the superblock. It uses the "future" field so no space is
> > wasted. mkcramfs uses the newest mtime or ctime from the
> > filesystem.
>
> Agreed, it seems like a good idea to have a filesystem timestamp.
>
> The future field should probably be saved for use as the offset of a
> "secondary superblock" (or something like that) rather than squandered
> for one field. At least, I think that was the original intent for the
> field and it has always been my plan.
Ok, I wondered what the intent really was.
> Maybe it would be easiest to overload the super.fsid.edition field?
Makes sense.
> Then you could have an option (probably a backward-compatible flag in
> the superblock, but could be compile-time or mount-time) that indicates
> that the edition number is a timestamp.
Using a flag should be enough I think:
#define CRAMFS_FLAG_FSID_EDITION_IS_TIMESTAMP 0x00000004 /* edition field
used as timestamp */
And mkcramfs should perhaps have support for
-e timestamp
(the string timestamp) which would set the edition field to the timestamp
according to the files in the image and set the timestamp flag.
Perhaps another option to set the timestamp flag but use whatever number
is supplied in the -e option might be useful for some, although I personally
don't think I need it. E.g. -f FSID_EDITION_IS_TIMESTAMP
Another mkcramfs feature we have at Axis is the support for metafiles with
file info used when creating the image. That allows us to create device
nodes, change userid etc. without being root which is good when building
for embedded devices.
It was first posted in October last year but without any feedback:
http://www.ussg.iu.edu/hypermail/linux/kernel/0110.0/0098.html
What do you think about that?
> - Dan
/Johan
next prev parent reply other threads:[~2002-04-25 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.33.0204241009040.24998-100000@ado-2.axis.se>
2002-04-24 23:51 ` [PATCH and RFC] Compact time in cramfs Daniel Quinlan
2002-04-25 8:39 ` johan.adolfsson [this message]
2002-04-23 16:26 Johan Adolfsson
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='00a001c1ec34$ad5703a0$adb270d5@homeip.net' \
--to=johan.adolfsson@axis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=quinlan@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