aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LFileInfo.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-04-23 08:43:39 -0400
committerKen Moore <ken@ixsystems.com>2018-04-23 08:43:39 -0400
commit0c4f3e425346da4272f75c0b30e573e653916574 (patch)
tree212d25319b92d8e9ec301dfa17e3033346d7b68c /src-qt5/core/libLumina/LFileInfo.h
parentUpdate the icon probe tool a bit. (diff)
downloadlumina-0c4f3e425346da4272f75c0b30e573e653916574.tar.gz
lumina-0c4f3e425346da4272f75c0b30e573e653916574.tar.bz2
lumina-0c4f3e425346da4272f75c0b30e573e653916574.zip
Add a bunch more ZFS integrations into LFileInfo:
1. ZFS permissions detection and UID check. 2. ZFS create 3. ZFS destroy 4. ZFS snapshot 5. ZFS rollback 6. ZFS clone (not finished yet)
Diffstat (limited to 'src-qt5/core/libLumina/LFileInfo.h')
-rw-r--r--src-qt5/core/libLumina/LFileInfo.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LFileInfo.h b/src-qt5/core/libLumina/LFileInfo.h
index f72c8649..21aae19d 100644
--- a/src-qt5/core/libLumina/LFileInfo.h
+++ b/src-qt5/core/libLumina/LFileInfo.h
@@ -17,8 +17,9 @@
class LFileInfo : public QFileInfo{
private:
- QString mime, zfs_ds;
- QStringList iconList;
+ QString mime, zfs_ds, zfs_dspath;
+ QStringList iconList, zfs_perms;
+ int c_uid;
XDGDesktop *desk;
void loadExtraInfo();
@@ -51,12 +52,26 @@ public:
bool isVideo(); //Is a readable video file (for thumbnail support)
bool isAVFile(); //Is an audio/video file
- bool isZfsDataset();
+ //ZFS Information
+ bool isZfsDataset(QString path = "");
QString zfsPool();
QStringList zfsSnapshots(); //Format: "snapshot name::::path/to/snapshot"
QJsonObject zfsProperties();
bool zfsSetProperty(QString property, QString value);
+ //ZFS Permissions/Modifications
+ bool canZFScreate();
+ bool zfsCreateDataset(QString subdir);
+ bool canZFSdestroy();
+ bool zfsDestroyDataset(QString subdir);
+ bool zfsDestroySnapshot(QString snapshot);
+ bool canZFSclone();
+ bool zfsCloneDataset(QString subdir, QString newsubdir);
+ bool canZFSsnapshot();
+ bool zfsSnapshot(QString snapname);
+ bool canZFSrollback();
+ bool zfsRollback(QString snapname);
+
};
typedef QList<LFileInfo> LFileInfoList;
bgstack15