From a9ece04c1d37ba84da2e24c4e8b5b554265298a7 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 21 Jun 1997 05:37:11 +0000 Subject: Use conv=notrunc when writing the superblock back to the filesystem device, in case it's a file and not a real device. --- sutils/e2os.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sutils/e2os.sh') diff --git a/sutils/e2os.sh b/sutils/e2os.sh index 8d3628d0..fd233b56 100755 --- a/sutils/e2os.sh +++ b/sutils/e2os.sh @@ -1,7 +1,7 @@ #!/bin/sh # Set/get the `creator_os' field of an ext2fs partition # -# Copyright (C) 1996 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997 Free Software Foundation, Inc. # # Written by Miles Bader # @@ -132,7 +132,7 @@ if test "$OS"; then sbset $SB_OS "$OS" # Write the superblock - $DD 2>"$ERRS" if="$SB" of="$DEVICE" bs=1k seek=1 count=1 \ + $DD 2>"$ERRS" if="$SB" of="$DEVICE" bs=1k seek=1 count=1 conv=notrunc \ || { $SED 1>&2 "s;^$DD:;$0:;" "$ERRS"; exit 6; } else # Print the os field. -- cgit v1.2.3