… | |
… | |
172 | { |
172 | { |
173 | /* these MUST match the value in linux/falloc.h */ |
173 | /* these MUST match the value in linux/falloc.h */ |
174 | EIO_FALLOC_FL_KEEP_SIZE = 0x01, |
174 | EIO_FALLOC_FL_KEEP_SIZE = 0x01, |
175 | EIO_FALLOC_FL_PUNCH_HOLE = 0x02, |
175 | EIO_FALLOC_FL_PUNCH_HOLE = 0x02, |
176 | EIO_FALLOC_FL_COLLAPSE_RANGE = 0x08, |
176 | EIO_FALLOC_FL_COLLAPSE_RANGE = 0x08, |
177 | EIO_FALLOC_FL_ZERO_RANGE = 0x10 |
177 | EIO_FALLOC_FL_ZERO_RANGE = 0x10, |
|
|
178 | EIO_FALLOC_FL_INSERT_RANGE = 0x20, |
|
|
179 | EIO_FALLOC_FL_UNSHARE_RANGE = 0x40 |
178 | }; |
180 | }; |
179 | |
181 | |
180 | /* eio_rename flags */ |
182 | /* eio_rename flags */ |
181 | enum |
183 | enum |
182 | { |
184 | { |
… | |
… | |
330 | unsigned int eio_npending (void); /* number of finished but unhandled requests */ |
332 | unsigned int eio_npending (void); /* number of finished but unhandled requests */ |
331 | unsigned int eio_nthreads (void); /* number of worker threads in use currently */ |
333 | unsigned int eio_nthreads (void); /* number of worker threads in use currently */ |
332 | |
334 | |
333 | /*****************************************************************************/ |
335 | /*****************************************************************************/ |
334 | /* convenience wrappers */ |
336 | /* convenience wrappers */ |
|
|
337 | /* these do not expose advanced syscalls and directory fds */ |
335 | |
338 | |
336 | #ifndef EIO_NO_WRAPPERS |
339 | #ifndef EIO_NO_WRAPPERS |
337 | eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data); /* result=wd */ |
340 | eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data); /* result=wd */ |
338 | eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data); |
341 | eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data); |
339 | eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ |
342 | eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ |