00001 /******************************************************************************/ 00002 /* XrdFfsWcache.hh simple write cache that captures consecutive small writes */ 00003 /* */ 00004 /* (c) 2010 by the Board of Trustees of the Leland Stanford, Jr., University */ 00005 /* All Rights Reserved */ 00006 /* Author: Wei Yang (SLAC National Accelerator Laboratory, 2009) */ 00007 /* Contract DE-AC02-76-SFO0515 with the Department of Energy */ 00008 /******************************************************************************/ 00009 00010 #ifdef __cplusplus 00011 extern "C" { 00012 #endif 00013 00014 void XrdFfsWcache_init(); 00015 int XrdFfsWcache_create(int fd); 00016 void XrdFfsWcache_destroy(int fd); 00017 ssize_t XrdFfsWcache_flush(int fd); 00018 ssize_t XrdFfsWcache_pwrite(int fd, char *buf, size_t len, off_t offset); 00019 00020 #ifdef __cplusplus 00021 } 00022 #endif