*** empty log message ***
[arla.git] / tests / part-files
blob5d4d5ebf1bec01f91d3af19f2e693aa3741924e0
1 #!/bin/sh
2 # $Id$
4 FS=${FS:-${objdir}/../appl/fs/fs}
6 (yes | dd count=512 bs=1024 of=one 2>&4) || exit 1
7 (yes | dd count=512 bs=1024 of=two 2>&4) || exit 1
9 ${FS} flush two || exit 1
11 # check that utimes, which triggers write_attr() or truncate_file(),
12 # doesn't do bad things
13 touch two || exit 1
15 cmp one two || exit 1
17 ${FS} flush two || exit 1
19 # check that write to the beginning of the file doesn't do bad things
20 (yes | dd count=1 bs=1024 of=two conv=notrunc 2>&4) || exit 1
22 cmp one two || exit 1
24 exit 0