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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -