[comp.unix.microport] Sync frequency

sjb@dalek.UUCP (Seth J. Bradley) (11/11/88)

I would like to increase the "hardness" of my
file system by increasing the frequency of syncs.
Does anyone know how to do this?
Thanks in advance!

-- 
Seth J. Bradley     UUCP: uunet!{lll-winken|ubvax}!dalek!sjb
		Internet: lll-winken.llnl.gov!dalek!sjb

mdm@cocktrice.UUCP (Mike Mitchell) (11/16/88)

In article <408@dalek.UUCP> sjb@dalek.UUCP (Seth J. Bradley) writes:
>I would like to increase the "hardness" of my
>file system by increasing the frequency of syncs.
>Does anyone know how to do this?
>Thanks in advance!

Edit your /etc/inittab to include the following line:

u0:234:once:/etc/update > /dev/console 2&>1

Compile the following and place the resulting file in /etc/update:

main()
{
	while (1) {
		sync();
		sleep(30);
	}
}

And you are all set...

-- 
Mike Mitchell				BELL:	(505) 471-7639
2020 Calle Lorca #43			ARPA:	mdm@cocktrice.UUCP
Santa Fe, NM 87505			UUCP:	...!uunet!dmk3b1!cocktrice!mdm