After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 78486 - Unable to copy files to FAT(16) file systems
Unable to copy files to FAT(16) file systems
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: File operations
2.8.x
Other Linux
: High major
: ---
Assigned To: gnome-vfs maintainers
Nautilus Maintainers
: 87353 134959 144887 159006 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-04-12 08:29 UTC by Alvaro del Castillo
Modified: 2005-02-03 10:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Patch to fix the issue (2.86 KB, patch)
2005-02-03 00:34 UTC, Christian Kellner
none Details | Review

Description Alvaro del Castillo 2002-04-12 08:29:34 UTC
When you mount a floppy disk as msdos type and try to
copy files with nautilus to the floppy disk
you receive a "Invalid Parameters" while copying
dialog.
Comment 1 John Fleck 2002-04-13 03:31:11 UTC
FYI, I can't duplicate this with 1.1.11.
Comment 2 John Fleck 2002-07-04 20:10:07 UTC
*** Bug 87353 has been marked as a duplicate of this bug. ***
Comment 3 Panagiotis Issaris 2002-11-20 20:05:07 UTC
I had exactly the same experience with the GNOME 2.0 Nautilus. I could
copy files to the floppy using cp in an xterm perfectly, and with
other filemanagers (such as MC), but Nautilus couldn't copy files to
the floppy.
Comment 4 Matthew Gatto 2004-02-19 08:29:20 UTC
I don't see this and no new info -> Closing.
Comment 5 Matthew Gatto 2004-02-21 00:09:06 UTC
*** Bug 134959 has been marked as a duplicate of this bug. ***
Comment 6 Matthew Gatto 2004-02-21 00:11:55 UTC
Reopening this bug and setting appropriate fields since it has been
reproduced in nautilus-2.4.2
Comment 7 Jon Kinred 2004-04-12 03:27:02 UTC
This problem still exists in Nautilus 2.6.0 (i tried updating the version field
below!). Bug 136959 has much more detailed information. Running a strace gives
this relevant info:

[pid  6452] open("/mnt/floppy/.vfs-write.tmp",
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE, 0600 <unfinished ...>

Then:
me@eleven ~ $ cp /home/me/.audacity /mnt/floppy
cp: cannot create regular file `/mnt/floppy/.audacity': Invalid argument


I think it's safe to say that msdos file systems don't like dot files, which
nautilus is trying to create before copying the file. I think this bug should be
marked as High priority, this sort of thing matters a lot to Joe User (or Jill
User in my case ;)).
Comment 8 Jon Kinred 2004-04-12 03:30:06 UTC
Oops. That should be Bug 134959 with the detailed information.
Comment 9 Jon Kinred 2004-04-12 22:42:39 UTC
I have investigated this problem further and found that the problem is actually
in gnome-vfs, specifically in the function gnome_vfs_destination_is_writable in
libgnomevfs/gnome-vfs-xfer.c. gnome-vfs writes the temporary file .vfs-write.tmp
to check the writability of the destination. Files preceeded by a dot are not
valid on FAT16 volumes, so the write fails. I have solved my particular problem
by instead using FAT32 formatted floppies, which do allow files preceded by a .

I'll leave it up to whoever owns the bug to move this bug to gnome-vfs or close
it as appropriate.
Comment 10 Mateusz Drozdzynski 2004-10-01 11:52:46 UTC
This bug still exists in Nautilus 2.8.0. Will anyone fix it?
Comment 11 Elijah Newren 2004-12-29 19:02:39 UTC
*** Bug 159006 has been marked as a duplicate of this bug. ***
Comment 12 Elijah Newren 2004-12-29 19:21:59 UTC
Moving to gnome-vfs based on Jon's comments.
Comment 13 Kjartan Maraas 2005-01-03 15:46:26 UTC
Is there really any reason to use a dotfile as the temporary file? It seems just
using a name like 'vfs-tmp' or whatever would solve this problem.
Comment 14 Oli Wade 2005-01-08 22:54:16 UTC
I like the idea above of not using a dotfile!

(Just got bitten by this trying to copy files to a usb flash drive which was
FAT16 formatted.)
Comment 15 Christian Kellner 2005-02-02 17:58:21 UTC
*** Bug 144887 has been marked as a duplicate of this bug. ***
Comment 16 Christian Kellner 2005-02-02 18:05:12 UTC
I just changed the subject to better fit the bug.
Comment 17 Christian Kellner 2005-02-03 00:34:45 UTC
Created attachment 36901 [details] [review]
Patch to fix the issue

I am not so sure if we really need to dup the URI there or if we could just
remove the const from the parameter. 
Do we return the right error? Should we return the error if
gnome_vfs_get_file_info_uri fails? I think this makes kinda sense because if we
can't get the file info then we have very little chance that we can write to
this dir (also I am not so sure if this is true for remote filesystems)
Comment 18 Stanislav Brabec 2005-02-03 07:54:09 UTC
Using names like vfs-tmp is not interesting - such file is visible by Nautilus.
Then it should be better to do inplace copying.

There is a more complicated alternative - implement something like
gnome_vfs_monitor_suspend() and gnome_vfs_monitor_resume(), copy inplace in
every case and use these functions.
Comment 19 Christian Kellner 2005-02-03 10:58:42 UTC
I commited the patch above to cvs head (with a slight change to not dup the
uri).  This should be gone now (hopefully) Closing as FIXED!