add what process own files in use in a filesystem.

This commit is contained in:
primardj 2024-02-04 12:09:53 +00:00
parent 7246b61c35
commit 47eae31609

10
dmount
View file

@ -1,7 +1,7 @@
#!/usr/bin/bash
Version="1.1.0"
Version="1.1.1"
Usage="dmount PARAMETER
Script which permit to mount/unmount an LVM on LUKS using dmcrypt, doas and fstab.
@ -36,10 +36,10 @@ mount_lvm_on_luks() {
umount_devices() {
echo "umount devices"
doas umount -R $Mountpoint_cours
doas umount -R $Mountpoint_doc
doas umount -R $Mountpoint_virt_machine
doas umount -R $Mountpoint_data
doas umount -R $Mountpoint_cours || lsof +D $Mountpoint_cours
doas umount -R $Mountpoint_doc || lsof +D $Mountpoint_doc
doas umount -R $Mountpoint_virt_machine || lsof +D $Mountpoint_virt_machine
doas umount -R $Mountpoint_data || lsof +D $Mountpoint_data
}
error_umount() {