Date: Sat, 27 Feb 2010 21:17:10 -0800 (PST) From: Kevin Oberman <oberman@es.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/144352: UFS disks remount immediately after unmount by nautilus Message-ID: <20100228051710.B234A5C58@slan.es.net> Resent-Message-ID: <201002280520.o1S5K1Nj018680@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 144352 >Category: ports >Synopsis: UFS disks remount immediately after unmount by nautilus >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 28 05:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Kevin Oberman >Release: FreeBSD 8.0-STABLE i386 >Organization: ESnet--The Energy Sciences Network >Environment: System: FreeBSD slan.es.net 8.0-STABLE FreeBSD 8.0-STABLE #0: Tue Feb 16 10:14:56 PST 2010 root@slan.es.net:/usr/obj/usr/src/sys/IBM-T43 i386 >Description: When a UFS formatted USB disk has been mounted by nautilus, it is re-mounted immedately. This makes removal of a USB drive impossible >Description: >How-To-Repeat: Start gnome. Plug in UFS formatted USB disk. from either the command line or the menu, unmount the drive. >Fix: --- /usr/ports/sysutils/hal/files/patch-hald_hf-storage.c.orig 2009-11-28 12:06:02.000000000 -0800 +++ /usr/ports/sysutils/hal/files/patch-hald_hf-storage.c 2010-02-27 21:03:05.000000000 -0800 @@ -1,5 +1,5 @@ ---- hald/freebsd/hf-storage.c.orig 2009-05-12 08:24:28.000000000 -0400 -+++ hald/freebsd/hf-storage.c 2009-10-24 02:30:22.000000000 -0400 +--- /usr/ports/sysutils/hal/work/hal-0.5.13/hald/freebsd/hf-storage.c.orig 2009-05-12 05:24:28.000000000 -0700 ++++ /usr/ports/sysutils/hal/work/hal-0.5.13/hald/freebsd/hf-storage.c 2010-02-25 11:40:42.000000000 -0800 @@ -79,8 +79,10 @@ + * things happen in applications like nautilus. + */ + if ((! strcmp(fields[1], "LABEL") || -+ ! strcmp(fields[1], "BSD")) && -+ ! strncmp(fields[2], "ufsid/", strlen("ufsid/"))) ++ ! strcmp(fields[1], "BSD") || ++ ! strcmp(fields[1], "PART")) && ++ (! strncmp(fields[2], "ufsid/", strlen("ufsid/")) || ++ ! strncmp(fields[1], "ufs/", strlen("ufs/")))) + { + g_strfreev(fields); + continue; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100228051710.B234A5C58>