mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
ceph-volume: adds has_gpt_headers property to Device class
Signed-off-by: Andrew Schoen <aschoen@redhat.com> Resolves: rm#27062
This commit is contained in:
parent
3d86d2dda9
commit
568a0ce5be
@ -211,6 +211,10 @@ class Device(object):
|
||||
def exists(self):
|
||||
return os.path.exists(self.abspath)
|
||||
|
||||
@property
|
||||
def has_gpt_headers(self):
|
||||
return self.blkid_api.get("PTTYPE") == "gpt"
|
||||
|
||||
@property
|
||||
def rotational(self):
|
||||
return self.sys_api['rotational'] == '1'
|
||||
|
Loading…
Reference in New Issue
Block a user