python - creating a new filesystem call for FUSE filesystem -



implementing filesystem using python fuse library. have implemented "snapshot" feature (api) file system. want call snapshotting api, via system call (ls,mkdir,etc) - snapshot? how create new system call?

unfortunately, can't add system call fuse, since fuse relies on kernel heavy lifting of syscalls. you'll need add kernel.

on other hand, sure need full blown system call, or can implement need @ user level? (for instance, ls, i.e. readdir() not system call, it's user level library routine calls other system calls, getdents().)

if need make call available programs running on system, add 1 of standard libraries, or hack in using ld_preload.

for adding system calls kernel, see here: http://www.csee.umbc.edu/courses/undergraduate/cmsc421/fall02/burt/projects/howto_add_systemcall.html

for ld_preload approach, see here: what ld_preload trick?


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -