Fix in-service re-sizing of docker-lv
docker-lv is an XFS file system. Add support for re-sizing XFS filesystems by using blkid to query the file system type and call xfs_growfs for XFS filesystems. Maintain the current behavior by calling resize2fs for all non-XFS file systems. Change-Id: If5de15d232c66e99f7f5c752d96ef92674dafb1d Story: 2002876 Task: 26864 Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
parent
51e231ad11
commit
0dc9e97fc7
|
@ -1,2 +1,2 @@
|
|||
SRC_DIR="src"
|
||||
TIS_PATCH_VER=65
|
||||
TIS_PATCH_VER=66
|
||||
|
|
|
@ -91,7 +91,12 @@ define platform::filesystem::resize(
|
|||
onlyif => "blkid ${device} | grep TYPE=\\\"drbd\\\"",
|
||||
} ->
|
||||
exec { "resize2fs $devmapper":
|
||||
command => "resize2fs $devmapper"
|
||||
command => "resize2fs $devmapper",
|
||||
onlyif => "blkid -s TYPE -o value $devmapper | grep -v xfs",
|
||||
} ->
|
||||
exec { "xfs_growfs $devmapper":
|
||||
command => "xfs_growfs $devmapper",
|
||||
onlyif => "blkid -s TYPE -o value $devmapper | grep xfs",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue