Crystal03 / google-docs-fs

Automatically exported from code.google.com/p/google-docs-fs
GNU General Public License v2.0
0 stars 0 forks source link

problems copying files into the mounted dir #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  choose a doc file, e.g. test.doc
2.  mount google-docs-fs to directory ~/gdocs
3.  "cp" test.doc ~/gdocs/.
4.  "cp" test.doc ~/gdocs/.

What is the expected output? What do you see instead?
Expecting -- two normal (redundant) copy operations.
Observing -- the second copy fails, return an error:
"cp" test.doc gdocs/.
cp: cannot create regular file `gdocs/./test.doc': No such file or directory

What version of the product are you using? On what operating system?
version=1.x
OS = Ubuntu 11.04

Please provide any additional information below.
If one renames the file, e.g. to test2.doc, everything works fine.
I run with the -d debug flag, and here's the relevant output:

LOOKUP /test.doc
getattr /test.doc
   NODEID: 2
   unique: 413, success, outsize: 144
unique: 414, opcode: SETATTR (4), nodeid: 2, insize: 128
truncate /test.doc 0
   unique: 414, error: -2 (No such file or directory), outsize: 16
unique: 415, opcode: LOOKUP (1), nodeid: 1, insize: 50

LOOKUP /test2.doc
getattr /test2.doc
   unique: 415, error: -2 (No such file or directory), outsize: 16
unique: 416, opcode: LOOKUP (1), nodeid: 1, insize: 50
LOOKUP /test2.doc
getattr /test2.doc
   unique: 416, error: -2 (No such file or directory), outsize: 16
unique: 417, opcode: CREATE (35), nodeid: 1, insize: 66
   unique: 417, error: -38 (Function not implemented), outsize: 16
unique: 418, opcode: MKNOD (8), nodeid: 1, insize: 66
mknod /test2.doc 0100444 0x0 umask=0022
getattr /test2.doc
   NODEID: 19
   unique: 418, success, outsize: 144
unique: 419, opcode: OPEN (14), nodeid: 19, insize: 48
open flags: 0x8001 /test2.doc
unique: 420, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 420, success, outsize: 96
unique: 421, opcode: GETATTR (3), nodeid: 1, insize: 56
getattr /
   unique: 421, success, outsize: 120
   open[35822880] flags: 0x8001 /test2.doc
   unique: 419, success, outsize: 32
unique: 422, opcode: GETXATTR (22), nodeid: 19, insize: 68
   unique: 422, error: -38 (Function not implemented), outsize: 16
unique: 423, opcode: WRITE (16), nodeid: 19, insize: 4176
write[35822880] 4096 bytes to 0 flags: 0x8001

Original issue reported on code.google.com by areg...@gmail.com on 14 Mar 2012 at 5:46