Don't mount a filesystem over an existing one with the same /dev and /dir.
authorRob Landley <rob@landley.net>
Tue, 2 Dec 2014 09:17:34 +0000 (03:17 -0600)
committerRob Landley <rob@landley.net>
Tue, 2 Dec 2014 09:17:34 +0000 (03:17 -0600)
commita03a0449e810c26f001cdfc56e5527f51577a639
tree8e9267e2adf9a56bb6ca21884640d01a563ded59
parentaebcdfa659679e5a1f92a9ad12e7c36621962988
Don't mount a filesystem over an existing one with the same /dev and /dir.

The OS mostly catches this for block devices, but calling "mount -a" twice
shouldn't overmount tmpfs entries with new tmpfs instances. (This needs a test
suite entry, and the test suite needs a root context to run in...)
toys/lsb/mount.c