Displaying 2 results from an estimated 2 matches for "ext_max".
Did you mean:
ext_mask
2009 Aug 20
3
[PATCH ovirt-node-image] fixes for edit-livecd
Patch set fixes issues with image size increase when using edit-livecd
Also address issue with ext4 root fs
2009 Aug 03
0
[PATCH node-image] Fix edit-livecd to re-create ext2 filesystem each time
...local size=
+ if [[ -n "$size_mb" ]]; then
+ size=$(( $size_mb * 1024 ))
+ fi
+
+ echo ">>> Mounting old ext3fs"
+ mnt "-t ext2 $input_file -o ro,loop" $input_dir
+ ext_used=$(df $WDIR/$input_dir | tail -1 | awk '{print $3}')
+ ext_max=$(df $WDIR/$input_dir | tail -1 | awk '{print $2}')
+
+ echo ">>> $input_file max_size=$ext_max current_size=$ext_used"
+
+ local new_size=
+ if [[ -z "$size" ]]; then
+ new_size=$ext_max
+ elif [ $size -lt $ext_used ]; then
+ echo &quo...