From 256298191cb09e04af6d44d434a35c7e9c203a42 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 7 Feb 2018 11:37:32 +0100 Subject: [PATCH] docs: update TODO Let's think about "mount --onlyonce". Addresses: https://github.com/karelzak/util-linux/issues/448 Signed-off-by: Karel Zak --- Documentation/TODO | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/TODO b/Documentation/TODO index 4dc643c103..092289146e 100644 --- a/Documentation/TODO +++ b/Documentation/TODO @@ -60,6 +60,12 @@ bash completion libmount (mount/umount) ----------------------- + - add --onlyonce to force mount(8) to check if mountpoint is already used. Now + "already mounted" detection is used for --all only. The problem is if you + call "mount " more than once for in fstab defined tmpfs (or network + filesystem etc.). In this case kernel does not return EBUSY, but a new instance + of the FS is created. https://github.com/karelzak/util-linux/issues/448 + - support CAP_SYS_ADMIN; for mount(2) syscall the CAP_SYS_ADMIN is good enough. Unfortunately, mount(8) does more things like check for filesystem type (but it's usually done by udev, so root perms are unnecessary), create -- 2.47.3