libports: less noisy fuse_ext2 compilation

Fixes #1058.
This commit is contained in:
Josef Söntgen 2013-12-09 16:31:16 +01:00 committed by Christian Helmuth
parent 53c6675500
commit 7bc49b05d0
2 changed files with 19 additions and 10 deletions

View File

@ -222,7 +222,7 @@
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/prctl.h> header file. */
#define HAVE_SYS_PRCTL_H 1
/* #undef HAVE_SYS_PRCTL_H */
/* Define to 1 if you have the <sys/queue.h> header file. */
#define HAVE_SYS_QUEUE_H 1

View File

@ -34,6 +34,11 @@ struct fuse *fh;
static ext2_filsys e2fs;
static struct extfs_data extfs_data;
char mnt_point[] = "/";
char options[] = "";
char device[] = "/dev/blkdev";
char volname[] = "ext2_volume";
}
@ -54,16 +59,18 @@ bool Fuse::init_fs(void)
return false;
}
extfs_data.debug = 0;
extfs_data.silent = 0;
extfs_data.force = 0;
extfs_data.readonly = 0;
/* set 1 to enable debug messages */
extfs_data.debug = 0;
extfs_data.silent = 0;
extfs_data.force = 0;
extfs_data.readonly = 0;
extfs_data.last_flush = 0;
extfs_data.mnt_point = "/";
extfs_data.options = "";
extfs_data.device = "/dev/blkdev";
extfs_data.volname = "ext2_volume";
extfs_data.e2fs = e2fs;
extfs_data.mnt_point = mnt_point;
extfs_data.options = options;
extfs_data.device = device;
extfs_data.volname = volname;
extfs_data.e2fs = e2fs;
fh = fuse_new(fc, NULL, &ext2fs_ops, sizeof (ext2fs_ops), &extfs_data);
if (fh == 0) {
@ -79,6 +86,8 @@ void Fuse::deinit_fs(void)
{
PLOG("libc_fuse_ext2: unmount /dev/blkdev...");
ext2fs_close(e2fs);
free(fh);
}