Project

General

Profile

Actions

Feature #7006

closed

mount.ceph: add -n option (no mtab update)

Added by Steve Stock over 10 years ago. Updated over 10 years ago.

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

0%

Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

While experimenting with automounting a ceph file system I discovered automount assumes the -n option is supported. mount.ceph doesn't handle this option causing the mount to fail:

mount_mount: mount(generic): calling mount -t ceph -s -o name=rot,secretfile=/etc/ceph/secret,dirstat,nodev mon1,mon2,mon3:/foo /mnt/foo
spawn_mount: mtab link detected, passing -n to mount
>> Can't understand option: '-n'
>> usage: /sbin/mount.ceph [src] [mount-point] [-v] [-o ceph-options]
>> options:
>> #011-h: Print this help
>> #011-v: Verbose
>> #011ceph-options: refer to mount.ceph(8)
mount(generic): failed to mount mon1,mon2,mon3:/foo (type ceph) on /mnt/foo
Actions #1

Updated by Steve Stock over 10 years ago

Created https://github.com/ceph/ceph/pull/942 which solves the problem I was having with automount, works now:

mount_mount: mount(generic): calling mount -t ceph -s -o name=rot,secretfile=/etc/ceph/secret,dirstat,nodev mon1,mon2,mon3:/foo /mnt/foo
spawn_mount: mtab link detected, passing -n to mount
mount_mount: mount(generic): mounted mon1,mon2,mon3:/foo type ceph on /mnt/foo
dev_ioctl_send_ready: token = 26
mounted /mnt/foo
Actions #2

Updated by Sage Weil over 10 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF