]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/bdev/bdev.h
Split bdev into modules: lxclvm
[mirror_lxc.git] / src / lxc / bdev / bdev.h
index 233ff636c08d59cfb24a3a5f24cea64f1c91c06e..8ad9272c4daf962dcac5a20f28c90a0a7f837f91 100644 (file)
@@ -58,6 +58,9 @@
 #define MS_STRICTATIME (1 << 24)
 #endif
 
+#define DEFAULT_FS_SIZE 1073741824
+#define DEFAULT_FSTYPE "ext3"
+
 struct bdev;
 
 struct bdev_ops {
@@ -134,4 +137,16 @@ void detach_block_device(struct lxc_conf *conf);
 
 bool rootfs_is_blockdev(struct lxc_conf *conf);
 
+/* Some helpers for lvm, rdb, and/or loop:
+ * Maybe they should move to a separate implementation and header-file
+ * (bdev_utils.{c,h}) which can be included in bdev.c?
+ */
+int blk_getsize(struct bdev *bdev, uint64_t *size);
+int detect_fs(struct bdev *bdev, char *type, int len);
+int do_mkfs(const char *path, const char *fstype);
+int is_blktype(struct bdev *b);
+int mount_unknown_fs(const char *rootfs, const char *target,
+               const char *options);
+
+
 #endif // __LXC_BDEV_H