From nobody@FreeBSD.org  Tue Dec 12 07:57:17 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8000D16A415
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Dec 2006 07:57:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D46BC43CC6
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Dec 2006 07:53:46 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBC7t8YK056792
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Dec 2006 07:55:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kBC7t7Uv056791;
	Tue, 12 Dec 2006 07:55:07 GMT
	(envelope-from nobody)
Message-Id: <200612120755.kBC7t7Uv056791@www.freebsd.org>
Date: Tue, 12 Dec 2006 07:55:07 GMT
From: Dominic Fandrey<lon_kamikaze@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gimp destroys files on fat32 upon opening
X-Send-Pr-Version: www-3.0

>Number:         106632
>Category:       kern
>Synopsis:       [msdosfs] gimp destroys files on fat32 upon opening
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    trhodes
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 12 08:00:18 GMT 2006
>Closed-Date:    
>Last-Modified:  Sat Nov 17 09:40:02 UTC 2007
>Originator:     Dominic Fandrey
>Release:        6.2-PRERELEASE
>Organization:
private
>Environment:
FreeBSD mobileKamikaze.norad 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sat Nov 25 12:55:14 CET 2006     root@homeKamikaze.norad:/usr/obj/TPR40-6/i386/usr/src/sys/TPR40-6  i386
>Description:
FreeBSD sometimes destroys .xcf files on fat32 paritions when opening them with the gimp. I entered a bug report, but strace shows that it's a FreeBSD problem, since gimp operates entirely in read only mode.

It is difficult to reproduce, but I've got the strace output and a copy of an affected file (as well as a backup of the unbroken original). All those are fairly large, so to share them I'd need somewhere to upload them.

More information can be found here:
http://bugzilla.gnome.org/show_bug.cgi?id=376687
>How-To-Repeat:
1. I create an .xcf file with the gimp and save it.
2. Afterwards I create a backup of the file.
3. I close it and open it again. Sometimes I get the following message:
 XCF: This file is corrupt!  I could not even salvage any partial image data
from it.
4. I copy the backup over the original.
5. Opening it works.
>Fix:
Don't use Fat32.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-ports-bugs 
Responsible-Changed-By: remko 
Responsible-Changed-When: Tue Dec 12 18:33:22 UTC 2006 
Responsible-Changed-Why:  
this sounds more like something the ports team. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106632 
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Dec 12 20:08:25 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106632 

From: "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de>
To: bug-followup@FreeBSD.org,  lon_kamikaze@gmx.de
Cc:  
Subject: Re: ports/106632: gimp destroys files on fat32 upon opening
Date: Tue, 12 Dec 2006 20:39:12 +0100

 Actually it has to be a fat32 bug, because gimp operates entirely in read only mode.
 It's also supplied bogus information by the OS. Just look at the file size.
 
 # grep -n stage4.xcf trace-original
 88492:stat("/mnt/msdos/vault/graphics/space/starfield01/stage4.xcf", {st_mode=0624, st_size=667297867660179424, ...}) = 0
 88494:stat("/mnt/msdos/vault/graphics/space/starfield01/stage4.xcf", {st_mode=0624, st_size=667297867660179424, ...}) = 0
 88952:open("/mnt/msdos/vault/graphics/space/starfield01/stage4.xcf", O_RDONLY) = 5
 88956:access("/mnt/msdos/vault/graphics/space/starfield01/stage4.xcf", F_OK) = 0
 88957:stat("/mnt/msdos/vault/graphics/space/starfield01/stage4.xcf", {st_mode=0, st_size=0, ...}) = 0
 88958:access("/mnt/msdos/vault/graphics/space/starfield01/stage4.xcf", R_OK) = 0
 88985:open("/mnt/msdos/vault/graphics/space/starfield01/stage4.xcf", O_RDONLY) = 5
Responsible-Changed-From-To: gnome->freebsd-bugs 
Responsible-Changed-By: mezz 
Responsible-Changed-When: Fri Dec 22 02:33:26 UTC 2006 
Responsible-Changed-Why:  
The submitter suggests that it is not a ports bug, but a FAT32 bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106632 
Responsible-Changed-From-To: freebsd-bugs->trhodes 
Responsible-Changed-By: remko 
Responsible-Changed-When: Fri Dec 29 20:44:44 UTC 2006 
Responsible-Changed-Why:  
assign to tom 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106632 

From: "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de>
To: bug-followup@FreeBSD.org,  lon_kamikaze@gmx.de
Cc:  
Subject: Re: kern/106632: [msdosfs] gimp destroys files on fat32 upon opening
Date: Sat, 17 Nov 2007 10:05:33 +0100

 This is still an issue for me. I work around this by copying everything to UFS
 before I work on it and copying it back afterwards. Kinda annoying. Sometimes
 I forget to, open a file and it's lost. Yay for backups.
>Unformatted:
