From 742905ef7f447912ef4485659c721cf1abd86423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 26 Aug 2016 18:59:33 +0100 Subject: [PATCH] Support setting labels online. --- src/fs/btrfs.h | 3 +++ src/fs/ext2.h | 3 +++ src/fs/filesystem.h | 5 ++++- src/fs/jfs.h | 3 +++ src/fs/linuxswap.h | 3 +++ 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/fs/btrfs.h b/src/fs/btrfs.h index 40370ba..3bb8170 100644 --- a/src/fs/btrfs.h +++ b/src/fs/btrfs.h @@ -87,6 +87,9 @@ public: CommandSupportType supportSetLabel() const override { return m_SetLabel; } + CommandSupportType supportSetLabelOnline() const override { + return m_SetLabel; + } CommandSupportType supportUpdateUUID() const override { return m_UpdateUUID; } diff --git a/src/fs/ext2.h b/src/fs/ext2.h index 9405d76..13573bf 100644 --- a/src/fs/ext2.h +++ b/src/fs/ext2.h @@ -79,6 +79,9 @@ public: CommandSupportType supportSetLabel() const override { return m_SetLabel; } + CommandSupportType supportSetLabelOnline() const override { + return m_SetLabel; + } CommandSupportType supportUpdateUUID() const override { return m_UpdateUUID; } diff --git a/src/fs/filesystem.h b/src/fs/filesystem.h index f83742b..53d84a2 100644 --- a/src/fs/filesystem.h +++ b/src/fs/filesystem.h @@ -157,7 +157,10 @@ public: return cmdSupportNone; /**< @return CommandSupportType for backing up */ } virtual CommandSupportType supportSetLabel() const { - return cmdSupportNone; /**< @return CommandSupportType for setting label*/ + return cmdSupportNone; /**< @return CommandSupportType for setting label */ + } + virtual CommandSupportType supportSetLabelOnline() const { + return cmdSupportNone; /**< @return CommandSupportType for setting label of mounted file systems */ } virtual CommandSupportType supportUpdateUUID() const { return cmdSupportNone; /**< @return CommandSupportType for updating the UUID */ diff --git a/src/fs/jfs.h b/src/fs/jfs.h index 64956fd..fa887fd 100644 --- a/src/fs/jfs.h +++ b/src/fs/jfs.h @@ -79,6 +79,9 @@ public: CommandSupportType supportSetLabel() const override { return m_SetLabel; } + CommandSupportType supportSetLabelOnline() const override { + return m_SetLabel; + } qint64 minCapacity() const override; qint64 maxCapacity() const override; diff --git a/src/fs/linuxswap.h b/src/fs/linuxswap.h index 7da7da1..a95ab58 100644 --- a/src/fs/linuxswap.h +++ b/src/fs/linuxswap.h @@ -76,6 +76,9 @@ public: CommandSupportType supportSetLabel() const override { return m_SetLabel; } + CommandSupportType supportSetLabelOnline() const override { + return m_SetLabel; + } CommandSupportType supportUpdateUUID() const override { return m_UpdateUUID; }