This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/lib
2009-05-15 22:01:56 +02:00
..
.cvsignore Converted from CVS 2009-05-15 22:01:56 +02:00
attach.c Converted from CVS 2009-05-15 22:01:56 +02:00
batchrd.c Converted from CVS 2009-05-15 22:01:56 +02:00
bluewave.h Converted from CVS 2009-05-15 22:01:56 +02:00
charset.c Converted from CVS 2009-05-15 22:01:56 +02:00
clcomm.c Converted from CVS 2009-05-15 22:01:56 +02:00
client.c Converted from CVS 2009-05-15 22:01:56 +02:00
crc.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbcfg.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbdupe.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbfdb.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbftn.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbmsgs.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbnode.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbtic.c Converted from CVS 2009-05-15 22:01:56 +02:00
dbuser.c Converted from CVS 2009-05-15 22:01:56 +02:00
diesel.c Converted from CVS 2009-05-15 22:01:56 +02:00
Diesel.doc Converted from CVS 2009-05-15 22:01:56 +02:00
diesel.h Converted from CVS 2009-05-15 22:01:56 +02:00
dostran.c Converted from CVS 2009-05-15 22:01:56 +02:00
endian.c Converted from CVS 2009-05-15 22:01:56 +02:00
execute.c Converted from CVS 2009-05-15 22:01:56 +02:00
expipe.c Converted from CVS 2009-05-15 22:01:56 +02:00
faddr.c Converted from CVS 2009-05-15 22:01:56 +02:00
falists.c Converted from CVS 2009-05-15 22:01:56 +02:00
ftn.c Converted from CVS 2009-05-15 22:01:56 +02:00
ftnmsg.c Converted from CVS 2009-05-15 22:01:56 +02:00
ftscprod.010 Converted from CVS 2009-05-15 22:01:56 +02:00
getheader.c Converted from CVS 2009-05-15 22:01:56 +02:00
gmtoffset.c Converted from CVS 2009-05-15 22:01:56 +02:00
hdr.c Converted from CVS 2009-05-15 22:01:56 +02:00
jam.h Converted from CVS 2009-05-15 22:01:56 +02:00
jammsg.c Converted from CVS 2009-05-15 22:01:56 +02:00
jammsg.h Converted from CVS 2009-05-15 22:01:56 +02:00
jamsys.h Converted from CVS 2009-05-15 22:01:56 +02:00
magic.c Converted from CVS 2009-05-15 22:01:56 +02:00
Makefile Converted from CVS 2009-05-15 22:01:56 +02:00
mangle.c Converted from CVS 2009-05-15 22:01:56 +02:00
mbdiesel.c Converted from CVS 2009-05-15 22:01:56 +02:00
mbfile.c Converted from CVS 2009-05-15 22:01:56 +02:00
mbinet.h Converted from CVS 2009-05-15 22:01:56 +02:00
mbse.h Converted from CVS 2009-05-15 22:01:56 +02:00
mbsedb.h Converted from CVS 2009-05-15 22:01:56 +02:00
mbselib.h Converted from CVS 2009-05-15 22:01:56 +02:00
mkprod.awk Converted from CVS 2009-05-15 22:01:56 +02:00
msg.c Converted from CVS 2009-05-15 22:01:56 +02:00
msg.h Converted from CVS 2009-05-15 22:01:56 +02:00
msgtext.c Converted from CVS 2009-05-15 22:01:56 +02:00
msgtext.h Converted from CVS 2009-05-15 22:01:56 +02:00
nntp.c Converted from CVS 2009-05-15 22:01:56 +02:00
nodelist.c Converted from CVS 2009-05-15 22:01:56 +02:00
nodelist.conf Converted from CVS 2009-05-15 22:01:56 +02:00
nodelist.h Converted from CVS 2009-05-15 22:01:56 +02:00
nodelock.c Converted from CVS 2009-05-15 22:01:56 +02:00
noderecord.c Converted from CVS 2009-05-15 22:01:56 +02:00
packet.c Converted from CVS 2009-05-15 22:01:56 +02:00
parsedate.c Converted from CVS 2009-05-15 22:01:56 +02:00
pidinfo.c Converted from CVS 2009-05-15 22:01:56 +02:00
pktname.c Converted from CVS 2009-05-15 22:01:56 +02:00
pop3.c Converted from CVS 2009-05-15 22:01:56 +02:00
proglock.c Converted from CVS 2009-05-15 22:01:56 +02:00
rawio.c Converted from CVS 2009-05-15 22:01:56 +02:00
README Converted from CVS 2009-05-15 22:01:56 +02:00
README.diesel Converted from CVS 2009-05-15 22:01:56 +02:00
README.macro Converted from CVS 2009-05-15 22:01:56 +02:00
rearc.c Converted from CVS 2009-05-15 22:01:56 +02:00
remask.c Converted from CVS 2009-05-15 22:01:56 +02:00
rfcaddr.c Converted from CVS 2009-05-15 22:01:56 +02:00
rfcdate.c Converted from CVS 2009-05-15 22:01:56 +02:00
rfcmsg.c Converted from CVS 2009-05-15 22:01:56 +02:00
sectest.c Converted from CVS 2009-05-15 22:01:56 +02:00
semafore.c Converted from CVS 2009-05-15 22:01:56 +02:00
signame.c Converted from CVS 2009-05-15 22:01:56 +02:00
smtp.c Converted from CVS 2009-05-15 22:01:56 +02:00
strcasestr.c Converted from CVS 2009-05-15 22:01:56 +02:00
strutil.c Converted from CVS 2009-05-15 22:01:56 +02:00
term.c Converted from CVS 2009-05-15 22:01:56 +02:00
timers.c Converted from CVS 2009-05-15 22:01:56 +02:00
tmpwork.c Converted from CVS 2009-05-15 22:01:56 +02:00
unpacker.c Converted from CVS 2009-05-15 22:01:56 +02:00
users.h Converted from CVS 2009-05-15 22:01:56 +02:00
virscan.c Converted from CVS 2009-05-15 22:01:56 +02:00

	Database structures.


Most databases have a structure with a header record. The header record
is at the beginning of the datafile and contains information about the
size of the header record and size of the database records. When a data
file is opened for reading the first thing to read the header record.
The field recsize contains the size of the datarecords and the field
hdrsize the offset to the first datarecord in the file.

If in the structure the size of the datarecords changes (grows), we can
allways read the old format in the correct way.

When a datafile is changed the datafile has to be rewritten completly.
Of course the new format is used then, and the new size must be stored in
the header.

The advantage of this technique is that updates can be performed automatic.
There is no need for free space for future use in the datarecords, the files
are thus smaller.


One other important thing, with some DOS based bbs'es, mail/tic processors
are using index files together with the data files to speed up the search in
the databases. Also some of them use internal memory cache for the data records.
I choose not to do this for two reasons, Linux like other Unices handles
file I/O very fast and when your system is not low on memory the kernel will
buffer all disk I/O in memory. Also Linux disks are very low fragmented due to
the design of the ext2fs. Whith all this in mind, using index files is only
extra overhead.
However, because of this you should not put the data files on a msdos
dos partition or on a nfs server.

The only exeption that uses index files are the nodelists.