]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-fuse: add connection args parsing support for libfuse > 3.0
authorXiubo Li <xiubli@redhat.com>
Tue, 5 May 2020 04:17:47 +0000 (00:17 -0400)
committerXiubo Li <xiubli@redhat.com>
Wed, 8 Jul 2020 07:27:23 +0000 (03:27 -0400)
commit6e25f9317b5ad4846971cf7c148d6c22f080c74e
treec6ef1be0e8f7bee6cab802b8fbbbe79ff6495c23
parent969c575622c364395ecbc97d7b072bcbe6d50ded
ceph-fuse: add connection args parsing support for libfuse > 3.0

Since 3.0 some options are moved to connection part.

The following options are recognized and should be parsed and
applied to the connection:

    -o max_write=N         sets conn->max_write
    -o max_readahead=N     sets conn->max_readahead
    -o max_background=N    sets conn->max_background
    -o congestion_threshold=N  sets conn->congestion_threshold
    -o async_read          sets FUSE_CAP_ASYNC_READ in conn->want
    -o sync_read           unsets FUSE_CAP_ASYNC_READ in conn->want
    -o atomic_o_trunc      sets FUSE_CAP_ATOMIC_O_TRUNC in conn->want
    -o no_remote_lock      Equivalent to -o no_remote_flock,no_remote_posix_lock
    -o no_remote_flock     Unsets FUSE_CAP_FLOCK_LOCKS in conn->want
    -o no_remote_posix_lock  Unsets FUSE_CAP_POSIX_LOCKS in conn->want
    -o [no_]splice_write     (un-)sets FUSE_CAP_SPLICE_WRITE in conn->want
    -o [no_]splice_move      (un-)sets FUSE_CAP_SPLICE_MOVE in conn->want
    -o [no_]splice_read      (un-)sets FUSE_CAP_SPLICE_READ in conn->want
    -o [no_]auto_inval_data  (un-)sets FUSE_CAP_AUTO_INVAL_DATA in conn->want
    -o readdirplus=no        unsets FUSE_CAP_READDIRPLUS in conn->want
    -o readdirplus=yes       sets FUSE_CAP_READDIRPLUS and unsets
                             FUSE_CAP_READDIRPLUS_AUTO in conn->want
    -o readdirplus=auto      sets FUSE_CAP_READDIRPLUS and
                             FUSE_CAP_READDIRPLUS_AUTO in conn->want
    -o [no_]async_dio        (un-)sets FUSE_CAP_ASYNC_DIO in conn->want
    -o [no_]writeback_cache  (un-)sets FUSE_CAP_WRITEBACK_CACHE in conn->want
    -o time_gran=N           sets conn->time_gran

Fixes: https://tracker.ceph.com/issues/45267
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/fuse_ll.cc