Project

General

Profile

Actions

Bug #44091

closed

mount.ceph: some options will be truncated and couldn't see any error in dmesg

Added by Xiubo Li about 4 years ago. Updated about 4 years ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Crash signature (v1):
Crash signature (v2):

Description

I was trying to add some new options to the kclient and testing it with "remount", but I couldn't see them was passed to the kernelspace ever, even there is no any errors about that:

For example:

$ mount.ceph :/ /mnt/cephfs -o remount,remount_timeout=10
or
$ mount.ceph :/ /mnt/cephfs -o remount,romount_timeout=10

Ususally if kcient doesn't support the remount_timeout or romount_timeout, we should see some errors in the dmesg logs, but the result is we couldn't see nothing.

Actions #1

Updated by Xiubo Li about 4 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Xiubo Li about 4 years ago

The fixing PR:
https://github.com/ceph/ceph/pull/33197

It dues to the mount.ceph was trying to parse the mount options by using the strncmp, such as for the "remount_timeout=10" it will parsed to "remount", and the "romount_timeout=10" will be parsed to "ro".

Actions #3

Updated by Xiubo Li about 4 years ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Xiubo Li about 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF