OSDN Git Service

Move kMajor* constants to a header file
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 24 Mar 2017 16:13:45 +0000 (00:13 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 17 Dec 2019 05:19:56 +0000 (13:19 +0800)
commit1a6fe4a008591c35c476c4f95ff18532341fb8a9
tree280c5be9a7f964157b8435dbda720bc656812919
parent475e6768f61544feef6f00b9c58dffa4e3108b4f
Move kMajor* constants to a header file

Currently each cpp defines its own kMajor* that can't be shared.
Move the kMajor* to a header to avoid duplicate definitions.

Change isVirtioBlkDevice() to be a public static method of Disk
so that the logic could be shared as well.
VolumeManager.cpp [changed mode: 0644->0755]
model/Disk.cpp
model/Disk.h
model/PrivateVolume.cpp