Mike Small
2022-09-26 22:44:01 UTC
I'm noticing places in both Slackware's installer and debian-installer
where a mkfs run is immediately followed by a sync...
---------------SeTpartitions--------------------------------------------
... other fs types ...
elif [ "$ROOT_SYS_TYPE" = "ext4" ]; then
if [ "$DOFORMAT" = "Check" ]; then
make_ext4 $ROOT_DEVICE "y"
else
make_ext4 $ROOT_DEVICE "n"
fi
elif [ "$ROOT_SYS_TYPE" = "reiserfs" ]; then
... yet more fs types ...
fi
fi # DOFORMAT?
# Sync before identifying and mounting the root device:
sync
------------------------------------------------------------------------
And debian-installer...
---packages/partman-basicfilesystems/commit.d/format_basicfilesystems---
case $filesystem in
ext2)
options=''
if [ -f $id/usage ]; then
options="$options -T $(cat $id/usage)"
fi
if [ "$(udpkg --print-os)" = hurd ]; then
options="$options -b 4096 -I 128 -o hurd"
fi
db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if log-output -t partman --pass-stdout \
mkfs.ext2 -F $device $options >/dev/null; then
sync
status=OK
else
status=failed
fi
db_progress STOP
------------------------------------------------------------------------
Is this just a known thing among those who've been around? mkfs isn't
truly done and with all bits on disk when it exits?
- Mike Sm.
where a mkfs run is immediately followed by a sync...
---------------SeTpartitions--------------------------------------------
... other fs types ...
elif [ "$ROOT_SYS_TYPE" = "ext4" ]; then
if [ "$DOFORMAT" = "Check" ]; then
make_ext4 $ROOT_DEVICE "y"
else
make_ext4 $ROOT_DEVICE "n"
fi
elif [ "$ROOT_SYS_TYPE" = "reiserfs" ]; then
... yet more fs types ...
fi
fi # DOFORMAT?
# Sync before identifying and mounting the root device:
sync
------------------------------------------------------------------------
And debian-installer...
---packages/partman-basicfilesystems/commit.d/format_basicfilesystems---
case $filesystem in
ext2)
options=''
if [ -f $id/usage ]; then
options="$options -T $(cat $id/usage)"
fi
if [ "$(udpkg --print-os)" = hurd ]; then
options="$options -b 4096 -I 128 -o hurd"
fi
db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if log-output -t partman --pass-stdout \
mkfs.ext2 -F $device $options >/dev/null; then
sync
status=OK
else
status=failed
fi
db_progress STOP
------------------------------------------------------------------------
Is this just a known thing among those who've been around? mkfs isn't
truly done and with all bits on disk when it exits?
- Mike Sm.