mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
package/mke2img: set sparse_super for revision 1
The sparse_super feature is more efficient in terms of speed and available space, so set it by default if supported, i.e. for revision 1. This gives a huge speed gain for large resize2fs operations, especially for expansion. Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
33771d6a2d
commit
225189803d
@ -82,7 +82,7 @@ main() {
|
|||||||
|
|
||||||
# Upgrade to rev1 if needed
|
# Upgrade to rev1 if needed
|
||||||
if [ ${rev} -ge 1 ]; then
|
if [ ${rev} -ge 1 ]; then
|
||||||
tune2fs_O_opts+=",filetype"
|
tune2fs_O_opts+=",filetype,sparse_super"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add a journal for ext3 and above
|
# Add a journal for ext3 and above
|
||||||
|
Loading…
x
Reference in New Issue
Block a user