From 342bef9fe3c657a2fdf227f710c932bf1b111f8d Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Tue, 17 Aug 2021 13:30:52 +0200 Subject: [PATCH] transmit storage quota in xmlrpc --- hsarback/src/de/hsadmin/remote/UnixUserRemote.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hsarback/src/de/hsadmin/remote/UnixUserRemote.java b/hsarback/src/de/hsadmin/remote/UnixUserRemote.java index 01576d1..4e03181 100644 --- a/hsarback/src/de/hsadmin/remote/UnixUserRemote.java +++ b/hsarback/src/de/hsadmin/remote/UnixUserRemote.java @@ -32,6 +32,14 @@ public class UnixUserRemote extends AbstractRemote { if (assertNotNull(quotaHard)) { map.put("quota_hardlimit", quotaHard.toString()); } + Integer storageSoft = user.getStorageSoftlimit(); + if (assertNotNull(storageSoft)) { + map.put("storage_softlimit", storageSoft.toString()); + } + Integer storageHard = user.getStorageHardlimit(); + if (assertNotNull(storageHard)) { + map.put("storage_hardlimit", storageHard.toString()); + } } @Override