Util-Linux package development
 help / color / mirror / Atom feed
* umount for deleted backing file?
@ 2012-07-27 10:40 Bernhard Voelker
  2012-07-27 11:23 ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Voelker @ 2012-07-27 10:40 UTC (permalink / raw)
  To: util-linux@vger.kernel.org

Hi *,

shouldn't umount also work for a deleted backing file?

# rm -v /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img
removed `/media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img'

$ mount | grep regfile
/media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img (deleted) on
/media/sdb5/berny/git/util-linux/tests/output/mount/regfile-mnt type ext3
(rw,relatime,errors=continue,barrier=1,data=ordered)

$ ../umount -v /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img
umount: /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img: not found

Have a nice day,
Berny

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: umount for deleted backing file?
  2012-07-27 10:40 umount for deleted backing file? Bernhard Voelker
@ 2012-07-27 11:23 ` Karel Zak
  2012-07-27 11:46   ` Bernhard Voelker
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2012-07-27 11:23 UTC (permalink / raw)
  To: Bernhard Voelker; +Cc: util-linux@vger.kernel.org

On Fri, Jul 27, 2012 at 12:40:37PM +0200, Bernhard Voelker wrote:
> Hi *,
> 
> shouldn't umount also work for a deleted backing file?
> 
> # rm -v /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img
> removed `/media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img'
> 
> $ mount | grep regfile
> /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img (deleted) on
> /media/sdb5/berny/git/util-linux/tests/output/mount/regfile-mnt type ext3
> (rw,relatime,errors=continue,barrier=1,data=ordered)
> 
> $ ../umount -v /media/sdb5/berny/git/util-linux/tests/output/mount/regfile.img

try:
    umount /media/sdb5/berny/git/util-linux/tests/output/mount/regfile-mnt

man umount:

  A file system is specified by giving the directory where it
  has been mounted. Giving the special device on which the file system
  lives  may also work, but is obsolete...


... just in this case it's for umount difficult to translate a file
which does not exist to mountpoint (it's possible but not too robust).

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: umount for deleted backing file?
  2012-07-27 11:23 ` Karel Zak
@ 2012-07-27 11:46   ` Bernhard Voelker
  0 siblings, 0 replies; 3+ messages in thread
From: Bernhard Voelker @ 2012-07-27 11:46 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux@vger.kernel.org

On 07/27/2012 01:23 PM, Karel Zak wrote:
> ... just in this case it's for umount difficult to translate a file
> which does not exist to mountpoint (it's possible but not too robust).

I agree, thanks for pointing that out.

Have a nice day,
Berny

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-27 11:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27 10:40 umount for deleted backing file? Bernhard Voelker
2012-07-27 11:23 ` Karel Zak
2012-07-27 11:46   ` Bernhard Voelker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox