ba736c7968
- move MINIX3-specific files into minix/lib/libpuffs; - resynchronize the remaining files with NetBSD code; - remove a few unnecessary changes; - put remaining MINIX3-specific changes in __minix blocks; - sort out the source files being linked at all. The result is that libpuffs now successfully links against FUSE file system programs again. It can successfully mount, perform some of the most basic operations, and unmount the file system. Change-Id: Ieac220f7ad8c4d1fa293abda81967e8045be0bb4
26 lines
637 B
C
26 lines
637 B
C
/* Created (MFS based):
|
|
* June 2011 (Evgeniy Ivanov)
|
|
*/
|
|
|
|
#include "fs.h"
|
|
|
|
/*===========================================================================*
|
|
* fs_sync *
|
|
*===========================================================================*/
|
|
void fs_sync(void)
|
|
{
|
|
/* Perform the sync() system call. Flush all the tables.
|
|
* The order in which the various tables are flushed is critical.
|
|
*/
|
|
int r;
|
|
PUFFS_MAKECRED(pcr, &global_kcred);
|
|
|
|
if (is_readonly_fs)
|
|
return; /* nothing to sync */
|
|
|
|
r = global_pu->pu_ops.puffs_fs_sync(global_pu, MNT_WAIT, pcr);
|
|
if (r) {
|
|
lpuffs_debug("Warning: sync failed!\n");
|
|
}
|
|
}
|