X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fmachine-image.h;h=bf41b2e78596d0dcea2009b52363db8ae654e7f4;hb=92947a0878c5d129adb37ddbfdef35274ef5c6ae;hp=c15b034321c6753f3a2a4847cfac4c258b68d864;hpb=aceac2f0b652dff701e5815c51c2e372e8fee84d;p=elogind.git diff --git a/src/shared/machine-image.h b/src/shared/machine-image.h index c15b03432..bf41b2e78 100644 --- a/src/shared/machine-image.h +++ b/src/shared/machine-image.h @@ -41,10 +41,12 @@ typedef struct Image { usec_t crtime; usec_t mtime; - uint64_t size; - uint64_t size_exclusive; + uint64_t usage; + uint64_t usage_exclusive; uint64_t limit; uint64_t limit_exclusive; + + void *userdata; } Image; Image *image_unref(Image *i); @@ -68,3 +70,5 @@ bool image_name_is_valid(const char *s) _pure_; int image_path_lock(const char *path, int operation, LockFile *global, LockFile *local); int image_name_lock(const char *name, int operation, LockFile *ret); + +int image_set_limit(Image *i, uint64_t referenced_max);