diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-22 08:07:16 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-22 08:07:16 -0500 |
commit | a9b35213d330faa3fc551c9a8c3524d519d8466b (patch) | |
tree | 15272832efd7f1e5615f4fe755dddd7be2a9999d /diskman/partition.hh | |
parent | 8fa9807ef3ac66ec5f47a804c7b3819dc59f7ab7 (diff) | |
download | horizon-a9b35213d330faa3fc551c9a8c3524d519d8466b.tar.gz horizon-a9b35213d330faa3fc551c9a8c3524d519d8466b.tar.bz2 horizon-a9b35213d330faa3fc551c9a8c3524d519d8466b.tar.xz horizon-a9b35213d330faa3fc551c9a8c3524d519d8466b.zip |
DiskMan: Add Partition::node method
Diffstat (limited to 'diskman/partition.hh')
-rw-r--r-- | diskman/partition.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/diskman/partition.hh b/diskman/partition.hh index 93090d8..8e6274b 100644 --- a/diskman/partition.hh +++ b/diskman/partition.hh @@ -29,6 +29,8 @@ public: const std::string fstype() const { return this->_fs_type; } /*! Retrieve the label of the file system on this partition. */ const std::string label() const { return this->_label; } + /*! Retrieve the device node of this partition (for example, /dev/sda1). */ + const std::string node() const { return this->_node; } private: /*! The size of the partition, in bytes. */ uint64_t _size; @@ -36,6 +38,8 @@ private: std::string _fs_type; /*! The label of the file system on this partition (if any) */ std::string _label; + /*! The device node of this partition. */ + std::string _node; Partition(Disk &d, void *creation, int type); friend class Disk; }; |