FreeBSD Bugzilla – Attachment 145627 Details for
Bug 192563
sysutils/fusefs-encfs: May not be possible to create a file if encfs_create returns ENOSYS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
This is a simple patch to implement encfs_create by just calling mknod then open
encfs-create.diff (text/plain), 1.74 KB, created by
Olivier - interfaSys sàrl
on 2014-08-10 20:59:42 UTC
(
hide
)
Description:
This is a simple patch to implement encfs_create by just calling mknod then open
Filename:
MIME Type:
Creator:
Olivier - interfaSys sàrl
Created:
2014-08-10 20:59:42 UTC
Size:
1.74 KB
patch
obsolete
>diff -ur encfs-1.7.4.orig/encfs/encfs.cpp encfs-1.7.4/encfs/encfs.cpp >--- encfs-1.7.4.orig/encfs/encfs.cpp 2014-04-21 15:10:48.592664000 +0000 >+++ encfs-1.7.4/encfs/encfs.cpp 2014-04-21 15:13:54.836904999 +0000 >@@ -587,6 +587,19 @@ > return res; > } > >+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *file) >+{ >+ int res; >+ >+ res = encfs_mknod(path, mode, 0); >+ if (res) >+ return res; >+ >+ res = encfs_open(path, file); >+ >+ return res; >+} >+ > int _do_flush(FileNode *fnode, int ) > { > /* Flush can be called multiple times for an open file, so it doesn't >diff -ur encfs-1.7.4.orig/encfs/encfs.h encfs-1.7.4/encfs/encfs.h >--- encfs-1.7.4.orig/encfs/encfs.h 2014-04-21 15:10:48.592664000 +0000 >+++ encfs-1.7.4/encfs/encfs.h 2014-04-21 15:16:34.295484998 +0000 >@@ -74,6 +74,7 @@ > struct fuse_file_info *fi); > int encfs_utime(const char *path, struct utimbuf *buf); > int encfs_open(const char *path, struct fuse_file_info *info); >+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *info); > int encfs_release(const char *path, struct fuse_file_info *info); > int encfs_read(const char *path, char *buf, size_t size, off_t offset, > struct fuse_file_info *info); >diff -ur encfs-1.7.4.orig/encfs/main.cpp encfs-1.7.4/encfs/main.cpp >--- encfs-1.7.4.orig/encfs/main.cpp 2014-04-21 15:10:48.592664000 +0000 >+++ encfs-1.7.4/encfs/main.cpp 2014-04-21 15:11:30.816665999 +0000 >@@ -563,7 +563,7 @@ > encfs_oper.init = encfs_init; > encfs_oper.destroy = encfs_destroy; > //encfs_oper.access = encfs_access; >- //encfs_oper.create = encfs_create; >+ encfs_oper.create = encfs_create; > encfs_oper.ftruncate = encfs_ftruncate; > encfs_oper.fgetattr = encfs_fgetattr; > //encfs_oper.lock = encfs_lock;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192563
: 145627