Some distros still use ext3 as default file system, we should check
these configs as well.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
| ... | ... |
@@ -200,6 +200,16 @@ flags=( |
| 200 | 200 |
) |
| 201 | 201 |
check_flags "${flags[@]}"
|
| 202 | 202 |
|
| 203 |
+check_flags EXT3_FS EXT3_FS_XATTR EXT3_FS_POSIX_ACL EXT3_FS_SECURITY |
|
| 204 |
+if ! is_set EXT3_FS || ! is_set EXT3_FS_XATTR || ! is_set EXT3_FS_POSIX_ACL || ! is_set EXT3_FS_SECURITY; then |
|
| 205 |
+ echo " $(wrap_color '(enable these ext3 configs if you are using ext3 as backing filesystem)' bold black)" |
|
| 206 |
+fi |
|
| 207 |
+ |
|
| 208 |
+check_flags EXT4_FS EXT4_FS_POSIX_ACL EXT4_FS_SECURITY |
|
| 209 |
+if ! is_set EXT4_FS || ! is_set EXT4_FS_POSIX_ACL || ! is_set EXT4_FS_SECURITY; then |
|
| 210 |
+ echo " $(wrap_color 'enable these ext4 configs if you are using ext4 as backing filesystem' bold black)" |
|
| 211 |
+fi |
|
| 212 |
+ |
|
| 203 | 213 |
echo '- Storage Drivers:' |
| 204 | 214 |
{
|
| 205 | 215 |
echo '- "'$(wrap_color 'aufs' blue)'":' |
| ... | ... |
@@ -207,16 +217,15 @@ echo '- Storage Drivers:' |
| 207 | 207 |
if ! is_set AUFS_FS && grep -q aufs /proc/filesystems; then |
| 208 | 208 |
echo " $(wrap_color '(note that some kernels include AUFS patches but not the AUFS_FS flag)' bold black)" |
| 209 | 209 |
fi |
| 210 |
- check_flags EXT4_FS_POSIX_ACL EXT4_FS_SECURITY | sed 's/^/ /' |
|
| 211 | 210 |
|
| 212 | 211 |
echo '- "'$(wrap_color 'btrfs' blue)'":' |
| 213 | 212 |
check_flags BTRFS_FS | sed 's/^/ /' |
| 214 | 213 |
|
| 215 | 214 |
echo '- "'$(wrap_color 'devicemapper' blue)'":' |
| 216 |
- check_flags BLK_DEV_DM DM_THIN_PROVISIONING EXT4_FS EXT4_FS_POSIX_ACL EXT4_FS_SECURITY | sed 's/^/ /' |
|
| 215 |
+ check_flags BLK_DEV_DM DM_THIN_PROVISIONING | sed 's/^/ /' |
|
| 217 | 216 |
|
| 218 | 217 |
echo '- "'$(wrap_color 'overlay' blue)'":' |
| 219 |
- check_flags OVERLAY_FS EXT4_FS_SECURITY EXT4_FS_POSIX_ACL | sed 's/^/ /' |
|
| 218 |
+ check_flags OVERLAY_FS | sed 's/^/ /' |
|
| 220 | 219 |
|
| 221 | 220 |
echo '- "'$(wrap_color 'zfs' blue)'":' |
| 222 | 221 |
echo " - $(check_device /dev/zfs)" |