Re: Loopback (dir->dir) mounting (NOT -o loop)

From: H. Peter Anvin (hpa@zytor.com)
Date: Thu Jun 01 2000 - 18:03:15 EST


Followup to: <Pine.GSO.4.10.10006011649160.17448-100000@weyl.math.psu.edu>
By author: Alexander Viro <viro@math.psu.edu>
In newsgroup: linux.dev.kernel
>
>
>
> On Thu, 1 Jun 2000, Pavel Machek wrote:
>
> > That will surely confuse hell out of the backup utility. It is
> > probably going to confuse autoclean.
>
> And you allow your backups freely span the filesystem boundaries? I've
> learnt not to do it _really_ hard way. Even harder was the autocleaner -
> ever went "uh, /mnt is already busy, let's mount it for an hour under
> /tmp/foo... Oh, FSCK! Let's hope these tapes are alive and there goes
> my fscking weekend..."?
>
> The point being: you should protect yourself against your own fsckups - no
> user will ever come anywhere near the crap you can inflict upon yourself
> at 4:55pm on Friday.
>

But seriously, though... think of:

    mount -t bind /home/user /home/user/again

Looking at dev_t won't help you, so your backup will recurse indefinitely.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:13 EST