diff options
author | Miles Bader <miles@gnu.org> | 1997-06-21 05:37:11 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-06-21 05:37:11 +0000 |
commit | a9ece04c1d37ba84da2e24c4e8b5b554265298a7 (patch) | |
tree | 7e8ca202cb44b1305d98927df9125300aeca9406 | |
parent | e0baabb9078f74c41d2e927a9d4ecc0294c94f27 (diff) |
Use conv=notrunc when writing the superblock back to the filesystem device, in
case it's a file and not a real device.
-rwxr-xr-x | sutils/e2os.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 <miles@gnu.ai.mit.edu> # @@ -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. |