[RHEL7,COMMIT] fuse kio: error PCS_ERR_CSD_LACKING is non-fatal

Submitted by Konstantin Khorenko on July 2, 2018, 2:39 p.m.

Details

Message ID 201807021439.w62EdcCO012949@finist_ce7.work
State New
Series "fuse kio: error PCS_ERR_CSD_LACKING is non-fatal"
Headers show

Commit Message

Konstantin Khorenko July 2, 2018, 2:39 p.m.
The commit is pushed to "branch-rh7-3.10.0-862.3.2.vz7.61.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.3.2.vz7.61.8
------>
commit fe974073854ee9a6e6643d2332e8936808f288ee
Author: Alexey Kuznetsov <kuznet@virtuozzo.com>
Date:   Mon Jul 2 17:39:38 2018 +0300

    fuse kio: error PCS_ERR_CSD_LACKING is non-fatal
    
    User space fused has option fail_on_nospace, which is not enabled
    by default and actually not well supported because analysis of consistency
    with abort on nospace condition was never done.
    
    Affects: https://pmc.acronis.com/browse/VSTOR-11692
    
    Signed-off-by: Alexey Kuznetsov <kuznet@virtuozzo.com>
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_cluster.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/kio/pcs/pcs_cluster.c b/fs/fuse/kio/pcs/pcs_cluster.c
index d705dbbd9336..b3d481287362 100644
--- a/fs/fuse/kio/pcs/pcs_cluster.c
+++ b/fs/fuse/kio/pcs/pcs_cluster.c
@@ -488,6 +488,8 @@  static void ireq_on_error_(struct pcs_int_request *ireq)
 		/* TODO:  tag ireq->dentry with EIO here */
 	}
 	case PCS_ERR_CSD_LACKING:
+		/* To be completely equivalent to user space we should add option fail_on_nospace here */
+		break;
 	case PCS_ERR_INV_PARAMS:
 	case PCS_ERR_NOT_FOUND:
 	case PCS_ERR_NON_EMPTY_DIR: