Project

General

Profile

Actions

Bug #48206

closed

client: fix crash when doing remount in none fuse case

Added by Xiubo Li over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, libcephfs
Labels (FS):
crash
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The g_conf() will try to dereference the `g_ceph_context` to get the `_conf`, but the `g_ceph_context` is not set in none fuse use case in libcephfs, so it will crash in `g_conf().get_val<>`.

Switch to use `cct->_conf.get_val<>` instead.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #48457: nautilus: client: fix crash when doing remount in none fuse caseResolvedWei-Chung ChengActions
Copied to CephFS - Backport #48458: octopus: client: fix crash when doing remount in none fuse caseResolvedWei-Chung ChengActions
Actions

Also available in: Atom PDF