1. 15 Jul, 2010 10 commits
  2. 08 Jul, 2010 11 commits
    • Per Cederqvist's avatar
      patch text-stat-sha256.patch · 376bd657
      Per Cederqvist authored
      376bd657
    • Per Cederqvist's avatar
      patch use-nettle.patch · 94b5710a
      Per Cederqvist authored
      94b5710a
    • Per Cederqvist's avatar
      This file adds 3 source files from · ad28f74a
      Per Cederqvist authored
      http://www.lysator.liu.se/~nisse/archive/nettle-1.15.tar.gz under
      different names.
      
          Original name	lyskomd name
      
          macros.h 		src/server/nettle-macros.h
          sha.h		src/server/nettle-sha.h
          sha256.c		src/server/nettle-sha256.c
      ad28f74a
    • Per Cederqvist's avatar
      8903b938
    • Per Cederqvist's avatar
      patch refactor-cached_get_text.patch · 560a74da
      Per Cederqvist authored
      560a74da
    • Per Cederqvist's avatar
      patch introduce-generation_position.patch · de22d96e
      Per Cederqvist authored
      de22d96e
    • Per Cederqvist's avatar
      Create empty files text-store.h and text-store.c, and include them · 26d67f86
      Per Cederqvist authored
      	in the link.
      	* src/server/text-store.h: New file, currently empty.
      	* src/server/text-store.c: New file.  Include text-store.h, but do
      	not yet do anything.
      	* src/server/Makefile.am (DISKOBJS): Added text-store.c and
      	text-store.h.
      	(DBCK): Added text-store.c.
      26d67f86
    • Per Cederqvist's avatar
      Remove the reclamation field of Text_stat. · 46ec1c8b
      Per Cederqvist authored
      	* src/include/kom-types.h (Text_stat): Remove the reclamation
      	field.  It was a mistake to add it 2006-11-06.
      	* src/server/dbck-cache.c (cached_flush_text): Don't touch
      	reclamation.
      	* src/server/memory.c (copy_text_stat): Ditto.
      	(init_text_stat): Ditto.
      	* src/server/ram-output.c (foutput_text_stat_3): Ditto.
      	* src/server/ram-parse.c (fparse_text_stat_3): Ditto.
      	(fparse_text_stat_2): Ditto.
      	(fparse_text_stat_0): Ditto.
      	* src/server/simple-cache.c (cached_create_text): Ditto.
      46ec1c8b
    • Per Cederqvist's avatar
      Write dbfiles atomically, renaming them once complete. · 50e88538
      Per Cederqvist authored
      Added support for renaming a datafile once it has been completely
      written, and to write it using a temporary extension.
      
      * src/server/ram-io.h (struct dbfile): Added fields fn,
      tmp_extension and tmp_fn.  Added documentation.
      (dbfile_open_write): New argument: tmp_extension.
      (dbfile_rename): New function.
      (dbfile_abort): New function.
      * src/server/ram-io.c (dbfile_new): Initialize fn, tmp_extension
      and tmp_fn.
      (current_fn): New static function.  Return tmp_fn if non-NULL,
      otherwise fn.
      (dbfile_delete): Free the new fields fn, tmp_extension and
      tmp_fn.
      (dbfile_open_write): New argument: tmp_extension.  Store a copy of
      the supplied filename.  If tmp_extension is non-NULL, store a copy
      of it, and compute the actual file name to open as the filname
      followed by the tmp_extension.
      (fsync_dirname): New static function.
      (dbfile_rename): New function.  Rename the file from tmp_fn to the
      wanted final filename, and sync the directory.
      (dbfile_abort): New function.
      * src/server/dbck-cache.c (cache_sync_all): Pass a NULL pointer as
      tmp_extension of dbfile_open_write(), to get the old behavior.
      * src/server/simple-cache.c (pre_sync): Ditto.
      50e88538
    • Per Cederqvist's avatar
      Created the utility function sstrdup. · 0cb622ac
      Per Cederqvist authored
      * src/server/ram-smalloc.c, src/include/server/smalloc.h:
      (sstrdup): New function.
      0cb622ac
    • Per Cederqvist's avatar
      Check the magic cookie when opening database files. · b7c6921e
      Per Cederqvist authored
      * src/server/ram-io.c (dbfile_open_read): New argument:
      wanted_magic.  Log a message and return NULL if the file contains
      the wrong magic cookie.  All callers updated to supply "CLEAN" as
      the magic cookie.
      b7c6921e
  3. 19 Jun, 2010 1 commit
    • Per Cederqvist's avatar
      Refuse to run the test suite if expect is broken. · 7f11c20f
      Per Cederqvist authored
      This causes "make check" to fail quickly if running on an expect that
      has broken handling of zero-lenght writes, or if expect is really,
      really slow due to broken glob gate.
      
      * src/server/testsuite/Makefile.am (check-l2g): Depend on
      working-dejagnu.
      (check-lyskomd): Ditto.
      (check-leaks): Ditto.
      (working-dejagnu): New target.
      (EXTRA_DIST): Added dejagnu.0/00-zero-length-write.exp and
      dejagnu.0/90-slow-glob-gate.exp.
      
      * src/server/testsuite/dejagnu.0/00-zero-length-write.exp: New
      test, that fails on known bad versions of expect.
      
      * src/server/testsuite/dejagnu.0/90-slow-glob-gate.exp: New test,
      that fails if a simple regexp pattern causes expect to run too
      slow, indicating that it is converted to a glob pattern that
      causes a lot of backtracking.
      
      * src/server/testsuite/.gitignore: Ignore dejagnu.log and
      dejagnu.sum.
      7f11c20f
  4. 23 May, 2010 1 commit
    • Per Cederqvist's avatar
      Don't attempt to use DNS when no nameserver is available. · 0deaed08
      Per Cederqvist authored
      * src/server/testsuite/Makefile.am (site.exp): Set use_dns to yes
      or no depending on if adnshost can resolve 127.0.0.1 or not.
      * src/server/testsuite/config/unix.exp (lyskomd_start): Set the
      "Use DNS" configuration depending on the use_dns setting from
      site.exp.
      0deaed08
  5. 22 May, 2010 1 commit
  6. 18 Apr, 2010 1 commit
    • Per Cederqvist's avatar
      Texinfo syntax compatibility. · 1573f370
      Per Cederqvist authored
      * doc/Protocol-A.texi: Don't use "@begin tex" instead of "@tex".  That
      construct worked in texinfo.tex version 2003-11-16.09, but support was
      removed in 2003-11-29.14.
      1573f370
  7. 31 Mar, 2010 3 commits
  8. 30 Mar, 2010 3 commits
  9. 12 Oct, 2009 1 commit
  10. 06 Oct, 2009 1 commit
  11. 31 May, 2009 7 commits