1 /* Created (MFS based):
2 * June 2011 (Evgeniy Ivanov)
7 #include <minix/vfsif.h>
10 #include "puffs_priv.h"
12 /*===========================================================================*
14 *===========================================================================*/
17 /* Perform the sync() system call. Flush all the tables.
18 * The order in which the various tables are flushed is critical.
21 PUFFS_MAKECRED(pcr
, &global_kcred
);
24 return(OK
); /* nothing to sync */
26 r
= global_pu
->pu_ops
.puffs_fs_sync(global_pu
, MNT_WAIT
, pcr
);
28 lpuffs_debug("Warning: sync failed!\n");
31 return(OK
); /* sync() can't fail */
35 /*===========================================================================*
37 *===========================================================================*/
40 /* Flush the blocks of a device from the cache after writing any dirty blocks
44 dev_t dev
= (dev_t
) fs_m_in
.REQ_DEV
;
46 if(dev
== fs_dev
) return(EBUSY
);
56 /*===========================================================================*
58 *===========================================================================*/
59 int fs_new_driver(void)
61 /* Do not do anything. */