Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad:branches
curlftpfs
curlftpfs-rdwr.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File curlftpfs-rdwr.patch of Package curlftpfs
diff -rU3 curlftpfs-0.9.2/ftpfs.c curlftpfs-0.9.2.mine/ftpfs.c --- curlftpfs-0.9.2/ftpfs.c 2012-12-03 22:42:09.000000000 +0100 +++ curlftpfs-0.9.2.mine/ftpfs.c 2012-12-03 22:47:43.000000000 +0100 @@ -174,6 +174,7 @@ FTPFS_OPT("codepage=%s", codepage, 0), FTPFS_OPT("iocharset=%s", iocharset, 0), FTPFS_OPT("nomulticonn", multiconn, 0), + FTPFS_OPT("allow_rdwr", allow_rdwr, 1), FUSE_OPT_KEY("-h", KEY_HELP), FUSE_OPT_KEY("--help", KEY_HELP), @@ -743,13 +744,12 @@ else if ((fi->flags & O_ACCMODE) == O_RDWR || (fi->flags & O_ACCMODE) == O_WRONLY) { -#ifndef CURLFTPFS_O_RW_WORKAROUND - if ((fi->flags & O_ACCMODE) == O_RDWR) + if ((!ftpfs.allow_rdwr || !(fi->flags & O_CREAT)) + && (fi->flags & O_ACCMODE) == O_RDWR) { err = -ENOTSUP; goto fin; } -#endif if ((fi->flags & O_APPEND)) diff -rU3 curlftpfs-0.9.2/ftpfs.h curlftpfs-0.9.2.mine/ftpfs.h --- curlftpfs-0.9.2/ftpfs.h 2008-04-25 12:32:30.000000000 +0200 +++ curlftpfs-0.9.2.mine/ftpfs.h 2012-12-03 22:43:10.000000000 +0100 @@ -67,6 +67,7 @@ char *codepage; char *iocharset; int multiconn; + int allow_rdwr; }; extern struct ftpfs ftpfs; --- curlftpfs-0.9.2/doc/curlftpfs.1 2007-11-20 20:27:58.000000000 +0100 +++ curlftpfs-0.9.2.mine/doc/curlftpfs.1 2012-12-04 10:02:55.000000000 +0100 @@ -36,6 +36,12 @@ flag followed by a comma separated string of options. .RS .TP +.B allow_rdwr +.B EXPERIMENTAL! +Allow open() in RDWR mode when O_CREAT is also specified. Read + seek operations +should still fail, but sequential writes are possible. Useful with some +applications that use O_RDWR for write-only operations, like Amanda. +.TP .B cacert=<file> (SSL) Pass a string naming a file holding one or more certificates to verify the peer with. @@ -108,7 +114,7 @@ to print a list of build-time supported engines. Note that not all (or none) of the engines may be available at run-time. .TP -.B ftpfs_debug +.B ftpfs_debug=<level> Make curlftpfs print lots of debug information. Useful only in conjunction with the .B \-d
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor