Skip to content

Commit

Permalink
Fixed Ceph backup librbd segfault
Browse files Browse the repository at this point in the history
Change-Id: I1a6b9935eb7da9fca5b572ea4823bae3def99ea0
Fixes: bug #1198271
  • Loading branch information
dosaboy committed Jul 11, 2013
1 parent bc4af72 commit e830c8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cinder/volume/drivers/rbd.py
Expand Up @@ -159,6 +159,13 @@ def fileno(self):
"""
raise IOError("fileno() not supported by RBD()")

# NOTE(dosaboy): if IO object is not closed explicitly, Python auto closes
# it which, if this is not overridden, calls flush() prior to close which
# in this case is unwanted since the rbd image may have been closed prior
# to the autoclean - currently triggering a segfault in librbd.
def close(self):
pass


class RBDVolumeProxy(object):
"""
Expand Down

0 comments on commit e830c8d

Please sign in to comment.