From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: Lennart Poettering <lennart@poettering.net>,
<linux-btrfs@vger.kernel.org>
Subject: Re: RFE: per-subvolume timestamp that is updated on every change to a subvolume
Date: Tue, 6 Jan 2015 14:02:02 +0800 [thread overview]
Message-ID: <54AB7A5A.10408@cn.fujitsu.com> (raw)
In-Reply-To: <20150105172754.GC19126@gardel-login>
-------- Original Message --------
Subject: RFE: per-subvolume timestamp that is updated on every change to
a subvolume
From: Lennart Poettering <lennart@poettering.net>
To: <linux-btrfs@vger.kernel.org>
Date: 2015年01月06日 01:27
> Heya!
>
> I am looking for a nice way to query the overall last modification
> timestamp of a subvolume. i.e. the most recent mtime of *any* file or
> directory within a subvolume. Ideally, I think, there was a
> btrfs_timespec field for this in "struct btrfs_root_item", alas there
> isn't afaics. Any chance this can be added?
In fact, btrfs_root_item contains one btrfs_inode_item, which contains
the a/c/m/otime.
But not sure if it contains the time you need.
I'd better add acmotime output for inode_item in btrfs-debug-tree and
try myself.
Thanks,
Qu
>
> Or is there another workable way to query this value? Maybe determine
> it from the current generation of a subvolume or so? Is that tracked?
> Ideas?
>
> Lennart
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-01-06 6:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 17:27 RFE: per-subvolume timestamp that is updated on every change to a subvolume Lennart Poettering
2015-01-05 18:59 ` Goffredo Baroncelli
2015-01-06 6:02 ` Qu Wenruo [this message]
2015-01-06 8:13 ` Qu Wenruo
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=54AB7A5A.10408@cn.fujitsu.com \
--to=quwenruo@cn.fujitsu.com \
--cc=lennart@poettering.net \
--cc=linux-btrfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).