2009-02-07 15:54:58 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \brief Header: Virtual File System: garbage collection code
|
|
|
|
*/
|
|
|
|
|
2005-02-19 00:15:37 +03:00
|
|
|
#ifndef MC_VFS_GC_H
|
|
|
|
#define MC_VFS_GC_H
|
2003-11-08 02:43:55 +03:00
|
|
|
|
2004-08-17 03:18:42 +04:00
|
|
|
#include "vfs-impl.h"
|
|
|
|
|
2010-04-17 12:06:09 +04:00
|
|
|
struct vfs_stamping
|
|
|
|
{
|
2003-11-08 02:43:55 +03:00
|
|
|
struct vfs_class *v;
|
|
|
|
vfsid id;
|
|
|
|
struct vfs_stamping *next;
|
|
|
|
struct timeval time;
|
|
|
|
};
|
|
|
|
|
2003-11-27 00:25:30 +03:00
|
|
|
void vfs_stamp (struct vfs_class *vclass, vfsid id);
|
|
|
|
void vfs_rmstamp (struct vfs_class *vclass, vfsid id);
|
2003-11-27 00:10:42 +03:00
|
|
|
void vfs_stamp_create (struct vfs_class *vclass, vfsid id);
|
2003-11-08 02:43:55 +03:00
|
|
|
void vfs_timeout_handler (void);
|
|
|
|
int vfs_timeouts (void);
|
2003-11-27 00:25:30 +03:00
|
|
|
vfsid vfs_getid (struct vfs_class *vclass, const char *dir);
|
2003-11-08 02:43:55 +03:00
|
|
|
void vfs_gc_done (void);
|
|
|
|
|
2010-04-17 12:06:09 +04:00
|
|
|
#endif /* MC_VFS_GC_H */
|