[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: About TLF... quick ideas



On Tue, 23 Apr 2002, Nate Bargmann wrote:

> Now, this points up a fundamental difference between Linux and DOS.  By
> default the Linux kernel doesn't flush the disk writes immediately.  I
> think for maximum reliability the contest logging distro should be
> configured for immediate disk writes.  Would the use of a journaling
> filesystem such as ext3 solve this problem?

No, AFAIK journaling only makes recovery from a crash quicker by making
sure that the disk file system can never enter an inconsistent state. That
is not the same as not loosing data.

But there are standard ways of making sure the data is written to the
disk: fsync(), sync() etc. to force a flush or open() with O_SYNC to make
the opened file such that all writes wait until the data is written to
disk.

-- 
Tomi Manninen           Internet:  oh2bns@sral.fi
OH2BNS                  AX.25:     oh2bns@oh2rbi.fin.eu
KP20ME04                Amprnet:   oh2bns@oh2rbi.ampr.org


-- 
To UNSUBSCRIBE, email to debian-hams-request@lists.debian.org
with a subject of "unsubscribe". Troble? Contact listmaster@lists.debian.org



Reply to: