From: Henry Bakker <bakker@sedsystems.ca>
To: linux-btrfs@vger.kernel.org
Subject: Re: Could btrfs-restore be extended to also restore file dates?
Date: Wed, 23 May 2012 08:13:34 -0600 [thread overview]
Message-ID: <4FBCF08E.10204@sedsystems.ca> (raw)
In-Reply-To: <20120523090748.GM24394@twin.jikos.cz>
I'm sure restoring all those fields would be functionality that most
server admins would want. If anyone on this list can add it, then you
have my thanks.
On 5/23/2012 3:07 AM, David Sterba wrote:
> On Tue, May 22, 2012 at 03:42:05PM -0600, Henry Bakker wrote:
>> Any possibility of getting btrfs-restore to also restore the files
>> timestamp?
>
> Quick look, yes it is possible and quite straightforward. The function
> restore.c:copy_file has direct access to the found on-disk inode item
> and can access the time fileds, then simply setting them for the file.
> Maybe it could restore more, like uid, gid or mode.
>
>
> david
>
>
prev parent reply other threads:[~2012-05-23 14:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 21:42 Could btrfs-restore be extended to also restore file dates? Henry Bakker
2012-05-23 9:07 ` David Sterba
2012-05-23 14:13 ` Henry Bakker [this message]
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=4FBCF08E.10204@sedsystems.ca \
--to=bakker@sedsystems.ca \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.