From: Martin Steigerwald <martin@lichtvoll.de>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Unrecoverable fs corruption?
Date: Sun, 03 Jan 2016 17:24:55 +0100 [thread overview]
Message-ID: <3682129.ZmNZ4hatg3@merkaba> (raw)
In-Reply-To: <pan$11cfd$9e78008a$67e09cd4$7017ff54@cox.net>
Am Sonntag, 3. Januar 2016, 15:53:56 CET schrieben Sie:
> [1] Fat-fingering a deletion: My own brown-bag "I became an admin that
> day" case was running a script, unfortunately as root, that I was
> debugging, where I did an rm -rf $somevar/*, with $somevar assigned
> earlier, only either the somevar in the assignment or the somevar in the
> rm line was typoed, so the var ended up empty and the command ended up as
> rm -rf /*. ...
>
> I was *SO* glad I had a backup, not just a raid1, that day!
Epic.
Thats the one case GNU rm doesn´t cover yet.
It refuses to rm -rf . or rm -rf .. and rm -rf / (unless you give special
argument, but there is not much it can do about rm -r /*, as the shell expands
this before handing it to the command.
Thanks,
--
Martin
next prev parent reply other threads:[~2016-01-03 16:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-31 23:36 Unrecoverable fs corruption? Alexander Duscheleit
2016-01-01 1:22 ` Chris Murphy
2016-01-01 8:13 ` Duncan
2016-01-02 4:32 ` Christoph Anton Mitterer
2016-01-03 15:00 ` Duncan
2016-01-04 0:05 ` Christoph Anton Mitterer
2016-01-06 7:35 ` Duncan
2016-01-02 10:53 ` Alexander Duscheleit
2016-01-02 21:19 ` Henk Slager
2016-01-03 15:53 ` Duncan
2016-01-03 16:24 ` Martin Steigerwald [this message]
2016-01-03 16:08 ` Duncan
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=3682129.ZmNZ4hatg3@merkaba \
--to=martin@lichtvoll.de \
--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.