diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-18 14:27:43 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-18 14:27:43 -0600 |
commit | f9b2cdf39fbab4337646003c7440f2feaef4c9af (patch) | |
tree | 5f6be916f54ce05ca8f9446da6fa106df397aea7 /diskman/disk.hh | |
parent | 910848185f3632cbd8b3bb72bf9d8b54ff4d2909 (diff) | |
download | horizon-f9b2cdf39fbab4337646003c7440f2feaef4c9af.tar.gz horizon-f9b2cdf39fbab4337646003c7440f2feaef4c9af.tar.bz2 horizon-f9b2cdf39fbab4337646003c7440f2feaef4c9af.tar.xz horizon-f9b2cdf39fbab4337646003c7440f2feaef4c9af.zip |
DiskMan: Add ability to reload partition table dynamically
Diffstat (limited to 'diskman/disk.hh')
-rw-r--r-- | diskman/disk.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/diskman/disk.hh b/diskman/disk.hh index dc149e7..668f209 100644 --- a/diskman/disk.hh +++ b/diskman/disk.hh @@ -80,6 +80,11 @@ public: /*! Retrieve the partitions contained in the label, if any. * @note You may only call this method if *has_label* is true. */ const std::vector<Partition> partitions() const; + + /*! Attempt to (re)load the partition table from the disk. + * @returns true if the partition table was loaded successfully. + * @note The partition array will not be modified if a failure occurs. */ + bool reload_partitions(); private: /*! The name of the disk ("sda") */ std::string _name; |