Amir H
Amir H

Reputation: 480

what system calls are used to copy files in Linux

I am modifying ext4 filesystem to add a simple encryption to files contents. I started by changing read and write system calls to change the contents right before write and after read system calls.

now copying files in terminal is working just as I expected but when I try to copy a file using a GUI based file manager (pcmanfm in this case) it is corrupting the contents.

my question is: what system calls are used for reading/writing files besides normal .read and .write?

Upvotes: 0

Views: 646

Answers (1)

user3427419
user3427419

Reputation: 1779

mmap, sendfile, etc

If you want crypto in ext4, you should probably look at the google's recent patch to Linux just for that,

http://www.phoronix.com/scan.php?page=news_item&px=EXT4-Encryption-Support

Upvotes: 1

Related Questions