tags:

views:

39

answers:

1

I`m implementing a custom filesystem on Ubuntu using Fuse, but I need to trap when a copy or move operation occur. Right now all I see are when some file are opened for writing or reading, but I need to see these operations in context so I can see what file are being copied or moved.

Any hints?

A: 

What you want to do is probably not easily done, considering that a "copy" or "move" program could do just what you see - open a file and write to it. That's a perfectly good way of copying a file.

Even if you can see what actual binary is doing it, that wouldn't give you enough information to know if this was a copy, a move or simply a program writing data to a file.

If you tell us why you need to do this, then maybe someone can suggest another solution, that fulfills your needs.

Mattias Nilsson