Add unlink hook to ioengine API, gluster ioengine
authorCastor Fu <castor@alumni.caltech.edu>
Tue, 19 Aug 2014 16:28:53 +0000 (09:28 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 19 Aug 2014 20:15:19 +0000 (15:15 -0500)
commit38ef9c90fbe4fddc209f94b277b49e78f7f6a424
tree063e3959a2936eea0634eb8fc9f49f5f932e986b
parente6590c12f4a8c3f6de2adc9e127b1d2a0585ffae
Add unlink hook to ioengine API, gluster ioengine

fio would just call unlink even with engines that are not using the
operating systems file namespace... This provides a hook to allow
overriding that, with a default handler, and implements it for the
gluster ioengine.

There are others which it'd probably make sense I'm sure.

Huamin Chen looked over my changes to the gluster code earlier...
>I like this unlink idea, it would be great if you can also make unlink optional (if my coding reading is correct). This looks a great pull request candidate to fio. Please ping Axboe after you are done. He is not actively watching pull requests.

>Please also feel free to augment gluster code and pull me for review if necessary.

-castor

Signed-off-by: Jens Axboe <axboe@fb.com>
engines/gfapi.h
engines/glusterfs.c
engines/glusterfs_async.c
engines/glusterfs_sync.c
filesetup.c
ioengine.h
ioengines.c
iolog.c