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
Post a Comment