chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shared/list: add LIST_APPEND
[elogind.git]
/
src
/
shared
/
machine-image.h
diff --git
a/src/shared/machine-image.h
b/src/shared/machine-image.h
index e17e32f4a5ccad797c5312764384a09fba6cc646..10e5d0a533e50320b19ce6ff8cbce865ad6dacc0 100644
(file)
--- a/
src/shared/machine-image.h
+++ b/
src/shared/machine-image.h
@@
-40,6
+40,11
@@
typedef struct Image {
usec_t crtime;
usec_t mtime;
usec_t crtime;
usec_t mtime;
+
+ uint64_t size;
+ uint64_t size_exclusive;
+ uint64_t limit;
+ uint64_t limit_exclusive;
} Image;
Image *image_unref(Image *i);
} Image;
Image *image_unref(Image *i);
@@
-52,6
+57,9
@@
int image_find(const char *name, Image **ret);
int image_discover(Hashmap *map);
int image_remove(Image *i);
int image_discover(Hashmap *map);
int image_remove(Image *i);
+int image_rename(Image *i, const char *new_name);
+int image_clone(Image *i, const char *new_name, bool read_only);
+int image_read_only(Image *i, bool b);
const char* image_type_to_string(ImageType t) _const_;
ImageType image_type_from_string(const char *s) _pure_;
const char* image_type_to_string(ImageType t) _const_;
ImageType image_type_from_string(const char *s) _pure_;