From 3e14a2ff841b477f269a4e95ee19a11bceb2a354 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 14 Mar 2010 20:58:28 +0100 Subject: [PATCH] =?UTF-8?q?Bug=2027072=20=E2=80=94=20does=20not=20force-unmount=20for=20drives=20in=20fstab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit force_removal() previously only checked for entries in our own mtab. This caused forced unmounts for drives in /etc/fstab not to work. Now check for drives in /etc/fstab as well. --- src/device.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/device.c b/src/device.c index 26b7329..8063811 100644 --- a/src/device.c +++ b/src/device.c @@ -11743,7 +11743,8 @@ force_removal (Device *device, { gboolean remove_dir_on_unmount; - if (mount_file_has_device (device->priv->device_file, NULL, &remove_dir_on_unmount)) + if (mount_file_has_device (device->priv->device_file, NULL, &remove_dir_on_unmount) || + is_device_in_fstab (device, NULL)) { g_print ("**** NOTE: Force unmounting device %s\n", device->priv->device_file); force_unmount (device, callback, user_data); -- 1.7.0