vdump question on advfs

From: Douglas B. Jones <douglas_at_gpc.peachnet.edu>
Date: Fri, 04 Aug 2000 17:42:59 -0400

Hi,

I created a fileset and mounted it on /tdump. I then went to another
directory and ran the following script:

#!/bin/csh
/sbin/rm -f x01 x02 x03
echo 'TESTVDUMP: setup'
echo 'file 1' > /tdump/one
echo 'file 2' > /tdump/two
echo 'TESTVDUMP: 0 dump'
sync
vdump -0uvf - /tdump > x01
sync
echo 'add file 2' >> /tdump/two
sleep 1
echo 'TESTVDUMP: 8 dump one'
sync
vdump -8uvf - /tdump > x02
sync
sleep 1
echo 'TESTVDUMP: 9 dump two'
sync
vdump -9uvf - /tdump > x03


I would expect to find:

x01: one and two
x02: two
x03: nothing

With the syncs in there, this is pretty much what happens, but sometimes
x02 has one and two in it? Also, without the syncs, x02 and x03 are likely
to either have just two or both one and two. I would think when a determination
is made on the file last mod time, that if it has not been flushed, that the
kernel would get it out of mem instead of off of disk?

Anyway, any ideas why with the syncs that x02 varies?

Thanks,
Cheers,
Douglas
Received on Fri Aug 04 2000 - 21:41:38 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT