diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-08-02 10:19:58 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-08-02 10:32:45 -0400 |
commit | c0952c73341321b309174a4e83e2e74d509b98a8 (patch) | |
tree | 3fb791087398345300156da8fb3f42664422f605 /libpod/volume_internal.go | |
parent | 0e2a7be0ec825449a1b95bd5df13e2519c67dcb4 (diff) | |
download | podman-c0952c73341321b309174a4e83e2e74d509b98a8.tar.gz podman-c0952c73341321b309174a4e83e2e74d509b98a8.tar.bz2 podman-c0952c73341321b309174a4e83e2e74d509b98a8.zip |
Support size and inode options on builtin volumes
[NO TESTS NEEDED] Since it is difficult to setup xfs quota
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1982164
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/volume_internal.go')
-rw-r--r-- | libpod/volume_internal.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/volume_internal.go b/libpod/volume_internal.go index 19008a253..f69f1c044 100644 --- a/libpod/volume_internal.go +++ b/libpod/volume_internal.go @@ -49,6 +49,9 @@ func (v *Volume) needsMount() bool { if _, ok := v.config.Options["GID"]; ok { index++ } + if _, ok := v.config.Options["SIZE"]; ok { + index++ + } // when uid or gid is set there is also the "o" option // set so we have to ignore this one as well if index > 0 { |