yaffs-direct: Basic tests. Add lpthread flag for background gc support
[yaffs2.git] / direct / yaffsfs.h
index 3a73ffbd52d1c44fdc3dfc53d966303fd264dd57..8daf9d6d6fcfca9fe1029131afa4800b045beafa 100644 (file)
@@ -255,12 +255,24 @@ int yaffs_link_reldev(struct yaffs_dev *dev,
                        const YCHAR *oldpath, const YCHAR *linkpath);
 int yaffs_mknod_reldev(struct yaffs_dev *dev, const YCHAR *pathname,
                     mode_t mode, dev_t dev_val);
+Y_LOFF_T yaffs_freespace_reldev(struct yaffs_dev *dev);
+Y_LOFF_T yaffs_totalspace_reldev(struct yaffs_dev *dev);
+
+int yaffs_sync_reldev(struct yaffs_dev *dev);
+int yaffs_unmount_reldev(struct yaffs_dev *dev);
+int yaffs_unmount2_reldev(struct yaffs_dev *dev, int force);
+int yaffs_remount_reldev(struct yaffs_dev *dev, int force, int read_only);
+
 
 /* Some non-standard functions to use fds to access directories */
 struct yaffs_dirent *yaffs_readdir_fd(int fd);
 void yaffs_rewinddir_fd(int fd);
 
+/* Non-standard functions to pump garbage collection. */
+int yaffs_do_background_gc(const YCHAR *path, int urgency);
+int yaffs_do_background_gc_reldev(struct yaffs_dev *dev, int urgency);
 
+/* Non-standard functions to get usage info */
 int yaffs_inodecount(const YCHAR *path);
 
 int yaffs_n_handles(const YCHAR *path);
@@ -270,7 +282,6 @@ int yaffs_dump_dev_reldir(struct yaffs_obj *reldir, const YCHAR *path);
 int yaffs_n_handles_reldev(struct yaffs_dev *dev, const YCHAR *path);
 int yaffs_dump_dev_reldev(struct yaffs_dev *dev, const YCHAR *path);
 
-
 #ifdef CONFIG_YAFFS_WINCE
 int yaffs_set_wince_times(int fd,
                        const unsigned *wctime,