Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

fix storage base size support #677

Merged
merged 4 commits into from
Nov 17, 2017
Merged

Conversation

bergwolf
Copy link
Member

When set, it is used to set both rootfs and volume size for rawblock and devicemapper graph drivers.

e.g., having StorageBaseSize=3gb:

[root@lear hyper]# hyperctl run -v /data --rm -t busybox
/ # df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/sdb                  3.0G     33.4M      3.0G   1% /
devtmpfs                 53.5M         0     53.5M   0% /dev
tmpfs                    58.1M         0     58.1M   0% /dev/shm
/dev/sda                  3.0G     32.2M      3.0G   1% /data
share_dir                 1.0M      4.0K   1020.0K   0% /etc/hosts

cc @minz1027

We need to pass it to the graphdriver instead of just using it for
the volume pool.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
@laijs
Copy link
Contributor

laijs commented Nov 15, 2017

LGTM

Copy link
Contributor

@minzcmu minzcmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it! This feature is really helpful!
giphy-downsized

@laijs laijs merged commit f2baf06 into hyperhq:master Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants