From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Unmountable btrfs filesystem - 'unable to find logical' / 'no mapping'
Date: Fri, 18 Jul 2014 10:01:42 +0000 (UTC) [thread overview]
Message-ID: <pan$8a4a4$d7f675d5$9433bb47$a7453cfe@cox.net> (raw)
In-Reply-To: loom.20140718T004316-587@post.gmane.org
Gareth Clay posted on Thu, 17 Jul 2014 23:09:08 +0000 as excerpted:
> I'm not fully sure about the btrfs restore -x behaviour either.
> Ownership of the restored files is still incorrect, but maybe it
> affects r/w/x permissions, which look fairly sensible for the small set
> of files I've looked at so far...
Thanks and good to read that you eventually able to successfully restore
most of the files too. A wakeup call indeed! I've always stressed
backups with btrfs and did have them, so wouldn't have been too bad off
if I had to revert to them. I'd simply let them get inconveniently
outdated, and between that and the chance it gave me to actually get real
experience with btrfs restore, I decided to try it first.
But your reply reminded me...
Something think I forgot to mention is that btrfs restore didn't restore
symlinks, at all, not as symlinks and not as copies of the files they
pointed at. It was as if the symlinks simply didn't exist on the source
filesystem I was restoring from, so I'm guessing the implementation
simply overlooked symlinks as something it needed to deal with.
Meanwhile, on ownership/permissions I think btrfs restore must simply
find the data and write it out as the user (presumably root) it is run
as, using the existing umask, just as a normal user file write would do
by default. So if your root and user umasks are identical (presumably
0022), you probably won't notice the permissions difference. My root
umask is 0022 while my user umask is 0027, so I noticed.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
prev parent reply other threads:[~2014-07-18 10:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 13:35 Unmountable btrfs filesystem - 'unable to find logical' / 'no mapping' Gareth Clay
2014-07-16 8:00 ` Duncan
2014-07-17 23:09 ` Gareth Clay
2014-07-18 10:01 ` Duncan [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='pan$8a4a4$d7f675d5$9433bb47$a7453cfe@cox.net' \
--to=1i5t5.duncan@cox.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).