Project

General

Profile

Feature #3784

rbd: issue modprobe when rbd map is called

Added by Dan Mick about 11 years ago. Updated about 11 years ago.

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

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

rbd map will not work unless the rbd kernel module is loaded, and this must be done manually. Add code to rbd to cause it to modprobe rbd before attempting the map operation.

Note: modprobe and map are both privileged operations.

Associated revisions

Revision e94b06a1 (diff)
Added by Dan Mick about 11 years ago

rbd: make 'add' modprobe rbd so it has a chance of success

Check for existence of /sys/bus/rbd first to avoid unnecessary calls

Fixes: #3784
Signed-off-by: Dan Mick <>
Reviewed-by: Alex Elder <>

History

#1 Updated by Dan Mick about 11 years ago

  • Status changed from New to In Progress

#2 Updated by Dan Mick about 11 years ago

  • Status changed from In Progress to Resolved

#3 Updated by Dan Mick about 11 years ago

commit:e94b06a19218decaf7d2d7b009bd862040f20285 in master

Also available in: Atom PDF