summaryrefslogtreecommitdiff
path: root/src/shared/user-record.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-10-28 20:16:42 +0200
committerLennart Poettering <lennart@poettering.net>2021-11-16 17:18:07 +0100
commit71bf7ba1939cba29dfaf6734c243980a16c324c0 (patch)
tree0b55e29ac0325f4fab15b0b5ed969f995e4c69de /src/shared/user-record.h
parent61fa16c1ca0d60dfcc2fc759171461de55e768ad (diff)
downloadsystemd-71bf7ba1939cba29dfaf6734c243980a16c324c0.tar.gz
user-record: relax rules on diskSize user record field
Let's not refuse low or high disk sizes unnecessarily early. They disk sizes are subject fs limits anyway, hence there's no point in adding another limit. Relaxing thhe rules here as the advantage that we can later allow "homectl resize lennart 0" as a generic way to minimize disk space.
Diffstat (limited to 'src/shared/user-record.h')
-rw-r--r--src/shared/user-record.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/shared/user-record.h b/src/shared/user-record.h
index c72bef4a72..22a6bb28f4 100644
--- a/src/shared/user-record.h
+++ b/src/shared/user-record.h
@@ -10,13 +10,6 @@
#include "missing_resource.h"
#include "time-util.h"
-/* But some limits on disk sizes: not less than 5M, not more than 5T */
-#define USER_DISK_SIZE_MIN (UINT64_C(5)*1024*1024)
-#define USER_DISK_SIZE_MAX (UINT64_C(5)*1024*1024*1024*1024)
-
-/* The default disk size to use when nothing else is specified, relative to free disk space */
-#define USER_DISK_SIZE_DEFAULT_PERCENT 85
-
typedef enum UserDisposition {
USER_INTRINSIC, /* root and nobody */
USER_SYSTEM, /* statically allocated users for system services */