"Hiding" files under a mount point

From: Allistar (a_at_b.com)
Date: 07/30/04


Date: Fri, 30 Jul 2004 12:36:49 +1200

Hi all,
  If I "hide" a file under a mount point, does that file still take up
space?

  I.e. I have a /spare directory. I copy a 20Mb file into it. I then
mount /dev/hdb1 to /spare. Not surprisingly the file I just copied
to /spare is no longer in /spare.

  So what has happened to the file?

  It still appear to be there because when I unmount /spare, the file is
visible again.

  Is there anything wrong with hiding files in this manner?

Allistar.



Relevant Pages