jtgans / tsumufs

An NFS caching layer for Linux
GNU General Public License v2.0
0 stars 0 forks source link

Problems for rename system call #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When you throw an "mv" command shell
2. dest path get oenent opcodes.
3. CacheManager.generatePath raise OSError (ENOENT)

I use tsumufs.cachePathOf(newpath) if newpath doesn't exist yet, next
os.rename will create newpath.

Also:

line 683 & 684, you use same opcodes value:
      srcpath = self._generatePath(fusepath, opcodes)
      destpath = self._generatePath(newpath, opcodes)

So I have created both variables srcopcodes and destopcodes.

Here is my patch.

See you, Bastien

Original issue reported on code.google.com by megab...@gmail.com on 13 Jul 2009 at 3:34

Attachments: