osl.git
3 years agoweb: Fix typo in README.
Andre Noll [Tue, 16 Jun 2020 14:50:19 +0000 (16:50 +0200)]
web: Fix typo in README.

3 years agoActivate -Wsign-compare.
Andre Noll [Sat, 16 May 2020 16:28:03 +0000 (18:28 +0200)]
Activate -Wsign-compare.

Currently this option is disabled but the number of warnings it
triggers is moderate. This patch fixes all of them and enables the
warning.

3 years agobuild: Deactivate implicit build make(1) rules.
Andre Noll [Wed, 17 Jun 2020 18:02:26 +0000 (20:02 +0200)]
build: Deactivate implicit build make(1) rules.

The new comment explains why.

3 years agobuild: Mark files generated by lopsub as precious.
Andre Noll [Wed, 17 Jun 2020 17:59:46 +0000 (19:59 +0200)]
build: Mark files generated by lopsub as precious.

Without this, running make(1) with no arguments after a previous
successful run would re-generate at least the .lsg.c file. This patch
avoids that.

3 years agobuild: Remove make(1) targets to build a static library.
Andre Noll [Wed, 17 Jun 2020 17:54:00 +0000 (19:54 +0200)]
build: Remove make(1) targets to build a static library.

These targets are not included in the default ("all") target.

3 years agobuild: Combine make(1) targets osl_errors.h and osl.h.
Andre Noll [Wed, 17 Jun 2020 17:49:32 +0000 (19:49 +0200)]
build: Combine make(1) targets osl_errors.h and osl.h.

There is no reason for the two-step appoach. After the patch
we generate one file less.

3 years agobuild: Make sure osl.h exists when we run the compiler.
Andre Noll [Wed, 17 Jun 2020 17:24:53 +0000 (19:24 +0200)]
build: Make sure osl.h exists when we run the compiler.

This fixes the build on NetBSD 9.0_RC1.

3 years agoDon't mention MacOS and Solaris in README and INSTALL.
Andre Noll [Tue, 16 Jun 2020 00:18:22 +0000 (02:18 +0200)]
Don't mention MacOS and Solaris in README and INSTALL.

Support for these was dropped recently.

3 years agoMakefile: Also build osl.h by default.
Andre Noll [Mon, 15 Jun 2020 14:29:52 +0000 (16:29 +0200)]
Makefile: Also build osl.h by default.

Otherwise it gets built as root during make install and is thus owned
by root. This may cause problems, for example if the source resides
on an NFS mounted directory where root is not allowed to write.

3 years agobuild: Add $(LDFLAGS) to rule for oslfsck.
Andre Noll [Mon, 18 May 2020 16:31:30 +0000 (18:31 +0200)]
build: Add $(LDFLAGS) to rule for oslfsck.

This allows for example to specify an additional -L option if lopsub
is not installed at a standard location.

3 years agobuild: Prefix CFLAGS and friends with OSL_.
Andre Noll [Sun, 17 May 2020 20:04:40 +0000 (22:04 +0200)]
build: Prefix CFLAGS and friends with OSL_.

It is best practice to leave the "official" CPPFLAGS, CFLAGS and
LDFLAGS variables alone and just add them at the end of the command
line options. This way the user may override any of our settings
by setting the corresponding option in the official variable. For
example, to deactivate warnings about unused variables or functions,
one may compile with

make CFLAGS=-Wno-unused

3 years agobuild: Reorder make variables.
Andre Noll [Sun, 17 May 2020 19:56:46 +0000 (21:56 +0200)]
build: Reorder make variables.

Move and assignment to LDFLAGS up to have the settings of all three
sets of flags at one location. Move libname down to where it is
needed.

3 years agobuild: Combine CFLAGS and LIBCFLAGS.
Andre Noll [Sun, 17 May 2020 19:47:17 +0000 (21:47 +0200)]
build: Combine CFLAGS and LIBCFLAGS.

We stopped compiling some object files twice some time ago. Since
then, all object files are build with the concatenation of both sets
of options.

The two variables are only used at this point, so it is safe to
combine them.

3 years agobuild: Simplify LDFLAGS setting.
Andre Noll [Sun, 17 May 2020 19:44:40 +0000 (21:44 +0200)]
build: Simplify LDFLAGS setting.

There is no more reason to distinguish between the three supported
operating systems. In particular all three support -Wl,-z,defs by now.

3 years agobuild: Simplify Makefile.
Andre Noll [Sun, 17 May 2020 19:43:42 +0000 (21:43 +0200)]
build: Simplify Makefile.

Now that only elf is supported we may get rid of the "format" variable
and the conditional.

3 years agobuild: Drop support for SunOS and MacOS.
Andre Noll [Sat, 16 May 2020 11:48:04 +0000 (13:48 +0200)]
build: Drop support for SunOS and MacOS.

Nobody uses this software on these platforms. It has not been tested
for a decade and is likely broken anyway.

3 years agobuild: Don't insist on gcc.
Andre Noll [Sat, 16 May 2020 11:23:36 +0000 (13:23 +0200)]
build: Don't insist on gcc.

On BSD systems gcc might not be installed while cc should always exist.

3 years agobuild: Create dependencies on the fly.
Andre Noll [Sat, 16 May 2020 11:23:03 +0000 (13:23 +0200)]
build: Create dependencies on the fly.

This is faster since we run the compiler only once. It is more robust,
too, because the build does not break if a random .h file is added to
the working directory. Using $(wildcard) is almost always a mistake..

3 years agoNEWS: Fix two typos.
Andre Noll [Sun, 17 May 2020 16:13:15 +0000 (18:13 +0200)]
NEWS: Fix two typos.

3 years agoImprove documentation of osl_rbtree_loop().
Andre Noll [Sat, 16 May 2020 11:03:51 +0000 (13:03 +0200)]
Improve documentation of osl_rbtree_loop().

Mention that E_OSL_LOOP is the only possible error. Fix a few trivial
whitespace issues and a typo while at it.

4 years agoMerge branch 'refs/heads/t/lopsub'
Andre Noll [Mon, 3 Jun 2019 12:05:10 +0000 (14:05 +0200)]
Merge branch 'refs/heads/t/lopsub'

* refs/heads/t/lopsub:
  Convert oslfsck to lopsub.

The merge conflicted twice for the Makefile because of commit
ec08b17c7514 which touched the object list of oslfsck and added
-DVERSION to the CPPFLAGs. This was easy to fix, though.

4 years agoMerge branch 'refs/heads/t/build'
Andre Noll [Sun, 5 May 2019 08:37:20 +0000 (10:37 +0200)]
Merge branch 'refs/heads/t/build'

A single commit that was cooking for four months.

* refs/heads/t/build:
  build: Fix dependencies for oslfsck.

5 years agoAdd explanation about lifetime of table description.
Andre Noll [Wed, 3 Jan 2018 01:45:15 +0000 (02:45 +0100)]
Add explanation about lifetime of table description.

5 years agoAdd link to author homepage.
Andre Noll [Sat, 19 Jan 2019 18:59:52 +0000 (19:59 +0100)]
Add link to author homepage.

The osl page already contains a link to the paraslash page, but it
makes sense to link also to the main software page.

6 years agobuild: Fix dependencies for oslfsck.
Andre Noll [Wed, 19 Apr 2017 13:49:38 +0000 (15:49 +0200)]
build: Fix dependencies for oslfsck.

The autogenerated Makefile.deps does not work for the oslfsck
exectutable because we compile the object files for oslfsck without
-fPIC to generate more performant code, and name them e.g. util.fsck.o
instead of util.o.

Geting rid of this optimization not only fixes the dependencies but
also simplifies the Makefile and speeds up the build.

7 years agoConvert oslfsck to lopsub.
Andre Noll [Sun, 28 Aug 2016 21:04:06 +0000 (23:04 +0200)]
Convert oslfsck to lopsub.

The gengetopt project seems to be dead (last release was five years
ago), so we eventually need to switch to something else.

This commit migrates the option parser of oslfsck to the lopsub
library, which turned out to be rather simple. As a result, the osl
package no longer depends on gengetopt and help2man.

The change only affects the oslfsck executable. No changes to the
library proper.

7 years agoosl-0.1.3. v0.1.3
Andre Noll [Mon, 19 Sep 2016 08:36:46 +0000 (10:36 +0200)]
osl-0.1.3.

7 years agoINSTALL: Explain how to update the library cache on MacOS.
Andre Noll [Thu, 19 May 2016 16:30:37 +0000 (18:30 +0200)]
INSTALL: Explain how to update the library cache on MacOS.

Thanks to Thomas Helle for pointing this out.

7 years agoREADME: Remove duplicate "network".
Andre Noll [Mon, 16 May 2016 08:49:35 +0000 (10:49 +0200)]
README: Remove duplicate "network".

7 years agoConvert README and INSTALL to markdown.
Andre Noll [Thu, 21 Apr 2016 09:09:39 +0000 (11:09 +0200)]
Convert README and INSTALL to markdown.

The grutatxt project is dead, so we need to switch to something else
eventually. Fortunately, only little changes are required for the
switch to the markdown markup language as there are only two files in
the source tree which are formated with grutatxt. This patch converts
both files and adjusts the Makefile to run the markdown converter
instead of the grutatxt script.

7 years agoweb: Create man page with groff rather than man2html.
Andre Noll [Wed, 13 Jan 2016 14:35:36 +0000 (15:35 +0100)]
web: Create man page with groff rather than man2html.

The man2html project is dead, as is the link on the osl web page. The
URL mentioned in the info of the man2html package for Ubuntu-14.04
still works but might not be the most up to date page on the planet
any more:

http://users.actrix.gen.nz/michael/vhman2html.html

In any case, it's a funny read. Needless to say that the link to the
sunsite FTP server is also dead.

This commit makes osl independent of man2html, simply by running groff
-Thtml instead of man2html. This even simplifies the Makefile a bit.

The patch also removes the dead link on the osl main page. We don't
need a replacement reference to groff because groff should be installed
on all systems anyway.

7 years agosha1: Make private functions static.
Andre Noll [Thu, 24 Mar 2016 07:01:31 +0000 (07:01 +0000)]
sha1: Make private functions static.

These are not exported in osl.h or osl-core.h, so the symbols should
not be exposed to applications.

8 years agoweb: Update Doxyfile.
Andre Noll [Wed, 13 Jan 2016 14:12:02 +0000 (15:12 +0100)]
web: Update Doxyfile.

This file was created long ago with doxygen version 1.5.4. The system
on which the public web pages are generated runs Ubuntu 14.04 which
ships doxygen-1.8.6. This doxygen version complains as follows:

Warning: Tag `DETAILS_AT_TOP' at line 162 of file web/Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 424 of file web/Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 727 of file web/Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"

This patch is the result of running doxygen -u web/Doxyfile. With the
updated file the above warnings go away, and the pages look identical.

8 years agoweb: Switch to UTF-8 encoding.
Andre Noll [Mon, 26 Oct 2015 14:38:09 +0000 (15:38 +0100)]
web: Switch to UTF-8 encoding.

Probably doesn't matter at all since there isn't a single text file in
the repo which is not pure ASCII. But still, in 2016 iso-8859 should
not be used any more..

8 years agoweb: Fix gibweb link.
Andre Noll [Mon, 26 Oct 2015 13:31:49 +0000 (14:31 +0100)]
web: Fix gibweb link.

The correct git:// and gitweb URLs contain a ".git" suffix. While the
git service works with and without this suffix, the gitweb link
404s without it.

This commit adds the .git suffix to both URLs.

8 years agoAdd make target www.
Andre Noll [Sat, 9 Aug 2014 13:21:50 +0000 (15:21 +0200)]
Add make target www.

The new target allows to update the web page with "make www", followed
by a suitable command to copy the "web" directory to the server. That's
as easy as it gets.

8 years agoweb: Remove SSI for last modification in footer.html.
Andre Noll [Thu, 22 Jan 2015 12:58:20 +0000 (13:58 +0100)]
web: Remove SSI for last modification in footer.html.

The footer.html file is is only used for the doxygen pages. It contains
a server side include directive although SSI is not activated on the
people.tuebingen.mpg.de web server and probably will never be.

This commit gets rid of the SSI and also removes the end tags </td>
and </table> from footer.html as these elements are not open at this
point of the document. This was found by the w3c validator.

Removes also the link to the W2C validator. Nobody wants to see this,
and doxygen does not even create valid html anyway..

8 years agoExplain the osl_strerror dance.
Andre Noll [Mon, 24 Aug 2015 15:34:28 +0000 (17:34 +0200)]
Explain the osl_strerror dance.

It's not completely obvious what is going on here and *why* we not
just go with a simple pointer array for the messages returned by
osl_strerror(). This commit explains why pointer arrays are bad
in DSOs.

8 years agoFix comment on SHA1 implementation.
Andre Noll [Mon, 24 Aug 2015 15:35:08 +0000 (17:35 +0200)]
Fix comment on SHA1 implementation.

The dependency on openssl was dropped six years ago in commit
f0884471. This commit corrects the stale comment that still says we
use openssl's sha1 implementation.

8 years agoosl_get_nth_row(): Always initialize result pointer.
Andre Noll [Sat, 13 Jun 2015 18:47:33 +0000 (20:47 +0200)]
osl_get_nth_row(): Always initialize result pointer.

We buy into Postel's prescription and try to be liberal in what we
accept, and conservative in what we send. This patch makes sure the
result pointer is set to NULL on failure, and documents this fact.

9 years agoSilence a gcc warning.
Andre Noll [Tue, 6 Jan 2015 17:32:58 +0000 (18:32 +0100)]
Silence a gcc warning.

Unfortunately, casting the return value to void is not enough to make
the warning go away, at least on Ubuntu systems.

9 years agoosl_update_object(): Honor OSL_DONT_FREE.
Andre Noll [Sun, 4 Jan 2015 00:34:26 +0000 (00:34 +0000)]
osl_update_object(): Honor OSL_DONT_FREE.

When osl_update_object() is called to replace an object of
an OSL_NO_STORAGE column, it frees the old object even if the
OSL_DONT_FREE flag is set for the column, which is wrong. This patch
changes the function to call free() only if OSL_DONT_FREE is unset.

9 years agoMention that OSL_RBTREE implies OSL_UNIQUE.
Andre Noll [Sun, 4 Jan 2015 00:33:35 +0000 (00:33 +0000)]
Mention that OSL_RBTREE implies OSL_UNIQUE.

Also print a warning when a table is opened or created which contains
a column description with OSL_RBTREE set but OSL_UNIQUE unset. Future
versions of osl might reject such table descriptions. But in order
to not break existing applications, we can not make such a change
without a deprecation period. So a warning has to suffice for now.

9 years agohlt.c: Clarify description.
Andre Noll [Sat, 3 Jan 2015 23:31:36 +0000 (23:31 +0000)]
hlt.c: Clarify description.

The old text was misleading since hlt looks only at regular
files. Directories can not be hard linked on most systems anyway.

9 years agoMinor API documentation improvements.
Andre Noll [Sat, 3 Jan 2015 22:57:58 +0000 (22:57 +0000)]
Minor API documentation improvements.

A couple of spelling and punctuation fixes, and some language
improvements.

9 years agoosl.c: Fix assertion in create_table_index().
Andre Noll [Sat, 3 Jan 2015 17:03:27 +0000 (17:03 +0000)]
osl.c: Fix assertion in create_table_index().

Classic "=" vs. "==" bug. Since offset is positive, and not used any
more after the assert statement, the line has always been a no-op.

Found by cppcheck.

9 years agorbtree.c: Remove unused rb_replace_node().
Andre Noll [Sat, 3 Jan 2015 17:02:12 +0000 (17:02 +0000)]
rbtree.c: Remove unused rb_replace_node().

Found by cppcheck.

9 years agoUpdate URLs and email addresses.
Andre Noll [Wed, 13 Aug 2014 10:14:20 +0000 (12:14 +0200)]
Update URLs and email addresses.

The project has been moved from systemlinux.org to people.tuebingen.mpg.de.
This commit updates all links and email addresses.

9 years agoInstall relative links to the soname.
Andre Noll [Mon, 11 Aug 2014 09:13:25 +0000 (11:13 +0200)]
Install relative links to the soname.

On make install, the library is installed to $(libdir)/$(realname)
(e.g. /usr/local/lib/libosl.so.0.1.2), and a link is created to
map $(linkername) to $(soname) (e.g. /usr/local/lib/libosl.so ->
/usr/local/lib/libosl.so.0).

This changes the ln command to create a relative link rather than an
absolute link. For example, /usr/local/lib/libosl.so now points to
libosl.so.0 without the leading directory. This shouldn't matter much
but it allows to move both files elsewhere without breaking the link.

9 years agoImprove documentation of the data_size field.
Andre Noll [Mon, 11 Aug 2014 09:11:09 +0000 (11:11 +0200)]
Improve documentation of the data_size field.

Make it clear that for objects of type OSL_FIXED_SIZE, the size has
to be specified in number of bytes.

10 years agoosl-0.1.2. maint v0.1.2
Andre Noll [Tue, 14 Jan 2014 14:31:02 +0000 (15:31 +0100)]
osl-0.1.2.

This commit also adds a NEWS file which contains the release notes
of all previous releases.

10 years agoFix adu link.
Andre Noll [Tue, 14 Jan 2014 14:11:12 +0000 (15:11 +0100)]
Fix adu link.

After the upgrade of the servers at systemlinux.org last week, the web
service is no longer available through http://systemlinux.org. Adjust
the link to the adu page accordingly.

11 years agoAdd shared target.
Andre Noll [Wed, 23 May 2012 17:21:17 +0000 (19:21 +0200)]
Add shared target.

This allows to build and install the shared library and the oslfsck
executable on systems without help2man via

        make shared oslfsck
        sudo make install-lib install-bin

11 years agoAllow to build a static version of libosl.
Andre Noll [Tue, 22 May 2012 15:55:10 +0000 (17:55 +0200)]
Allow to build a static version of libosl.

This adds the new target libosl.a which creates an archive that can
be statically linked into applications. Currently this works only on
ELF-based systems including Linux, FreeBSD and NetBSD, but fails on
MacOS. So it is not built automatically.

Unfortunately, creating libosl.a turned out to be trickier than
expected, because -fvisibility=hidden works only for dynamic libraries.
So we need a different method to hide non-static internal symbols
like make_message() which must not be global (external) because they
might clash with symbols used in the application.

objcopy(1) does the trick but we must provide a list of exceptional
symbols that should not be made local. This list is generated from
the osl.h header file.

13 years agoinit_rbtrees(): Fix initialization of volatile objects.
Andre Noll [Sat, 22 Jan 2011 13:23:14 +0000 (14:23 +0100)]
init_rbtrees(): Fix initialization of volatile objects.

In case a table contains both volatile and non-volatile rbtree columns
we must inititalize the arrray of pointers to the volatile objects.

Without this patch, re-opening a non-empty table leads to a segfault.

13 years agoSimplify __log().
Andre Noll [Sat, 22 Jan 2011 13:18:09 +0000 (14:18 +0100)]
Simplify __log().

No need for outfd as it is always stderr.

13 years agoClarify documentation of osl_table_description->dir.
Andre Noll [Sat, 22 Jan 2011 13:16:41 +0000 (14:16 +0100)]
Clarify documentation of osl_table_description->dir.

13 years agoMakefile: Remove unused uname_rs.
Andre Noll [Sat, 22 Jan 2011 13:15:49 +0000 (14:15 +0100)]
Makefile: Remove unused uname_rs.

13 years agohlt: Fix typo in comment.
Andre Noll [Sun, 21 Nov 2010 10:58:45 +0000 (11:58 +0100)]
hlt: Fix typo in comment.

14 years agoFix creation of zero-sized disk storage objects.
Andre Noll [Fri, 15 Jan 2010 19:11:50 +0000 (20:11 +0100)]
Fix creation of zero-sized disk storage objects.

We must not call write_all() with a zero length parameter.

14 years agoosl-0.1.1 v0.1.1
Andre Noll [Thu, 26 Nov 2009 13:14:42 +0000 (14:14 +0100)]
osl-0.1.1

14 years agoSplit install target.
Andre Noll [Wed, 25 Nov 2009 09:40:08 +0000 (10:40 +0100)]
Split install target.

As proposed by Sebastian Stark, this introduces the install-lib,
install-bin and install-man targets. The simple "make install" still
installs everything, but splitting the target allows people to install
for example only the library if they do not have all tools available
which are necessary to build the oslfsck binary or its man page.

14 years agoINSTALL update.
Andre Noll [Mon, 23 Nov 2009 17:06:39 +0000 (18:06 +0100)]
INSTALL update.

Remove dependency on openssl and describe more clearly what is needed
to compile and install the package.

Also mention that one can set PREFIX to change the installation prefix
at make install time.

14 years agoDrop dependency on openssl.
Andre Noll [Fri, 20 Nov 2009 08:38:56 +0000 (09:38 +0100)]
Drop dependency on openssl.

This patch adds git's implementation of the sha1 hash algorithm. This
makes osl more self-contained as it allows to build osl without
openssl being installed.

It should also reduce the startup time of applications that link
against libosl.

14 years agoDon't use ?:= for setting PREFIX.
Andre Noll [Thu, 5 Nov 2009 10:27:05 +0000 (11:27 +0100)]
Don't use ?:= for setting PREFIX.

This does not work with all versions of (gnu) make.

14 years agoSet CC to gcc by default.
Andre Noll [Mon, 2 Nov 2009 13:39:16 +0000 (14:39 +0100)]
Set CC to gcc by default.

On systems where cc != gcc, compilation likely fails because we are
using quite some gccisms in osl. So default to gcc but let the user
override the default by setting CC manually.

The straight-forward CC ?= gcc does not work with gnu make as make
assigns CC the default value "cc".

Thanks to Steffen Schmidt for pointing out this shortcoming.

14 years agoCapitalize prefix variable.
Andre Noll [Mon, 2 Nov 2009 13:34:15 +0000 (14:34 +0100)]
Capitalize prefix variable.

As noted by Steffen Schmidt, in most projects the installation prefix is
spelled in caps, so follow this rule in osl.

Also use ?:= as the assignement operator as it creates a simply expanded
variable which is more suitable for the PREFIX variable.

14 years agoMacOs Fixes.
Andre Noll [Fri, 21 Aug 2009 11:17:31 +0000 (13:17 +0200)]
MacOs Fixes.

- Fix name of symbolic link used during installation.
- Do not strip the installed library.

14 years ago[Makefile]: Also create bindir and mandir on install. v0.1.0
Andre Noll [Tue, 4 Aug 2009 08:50:05 +0000 (10:50 +0200)]
[Makefile]: Also create bindir and mandir on install.

14 years agoREADME: Clarify red-black tree statements.
Andre Noll [Mon, 3 Aug 2009 09:31:49 +0000 (11:31 +0200)]
README: Clarify red-black tree statements.

As noted by Sebastian Stark, the old text was a bit misleading. So
make it clear that no special linux files are necessary to compile
the library.

Also, the sentence on table locking was not quite true: There's the
dirty bit in each osl table which is some kind of locking. Correct that
statement as well.

14 years agoThe fsck program is called oslfsck rather than osl_fsck.
Andre Noll [Sun, 2 Aug 2009 10:54:46 +0000 (12:54 +0200)]
The fsck program is called oslfsck rather than osl_fsck.

Remove the underscore and kill an outdated comment.

14 years agoImprove table versioning.
Andre Noll [Sun, 2 Aug 2009 10:31:07 +0000 (12:31 +0200)]
Improve table versioning.

This patch changes the way table version numbers are stored on disk.
Two version numbers instead of only one are stored in the table header:
The version of the lib that created the table, and the lowest version
number of the lib that can read the table.

As the latter is currently 0, it has no effect so far, i.e. tables
created with previous versions of the library still work fine. However,
with this change future versions of the library can detect from the
on-disk versions and the library version numbers if table and library
are compatible.

14 years agoRemove unnecessary $O from gengetopt target.
Andre Noll [Sat, 1 Aug 2009 19:51:45 +0000 (21:51 +0200)]
Remove unnecessary $O from gengetopt target.

Another relict from the paraslash code.

14 years agoMerge commit 'fml/master'
Andre Noll [Sat, 1 Aug 2009 19:49:49 +0000 (21:49 +0200)]
Merge commit 'fml/master'

14 years agoInstall executables using mode 755.
Andre Noll [Sat, 1 Aug 2009 19:41:04 +0000 (21:41 +0200)]
Install executables using mode 755.

14 years agoAdd subject=[osl] to the mailto link.
Andre Noll [Mon, 27 Jul 2009 17:12:25 +0000 (19:12 +0200)]
Add subject=[osl] to the mailto link.

Suggested by Sebastian Schultheiss. Let's see how much spam comes
through this link..

14 years agoAdd the osl logo.
Andre Noll [Mon, 27 Jul 2009 17:02:01 +0000 (19:02 +0200)]
Add the osl logo.

Many thanks to Sebastian Schultheiss who created the logo.

14 years agoREADME: Trivial typo fix.
Andre Noll [Mon, 27 Jul 2009 15:01:38 +0000 (17:01 +0200)]
README: Trivial typo fix.

Noted by Sebastian Stark.

14 years agoChange the osl slogan.
Andre Noll [Mon, 27 Jul 2009 15:01:08 +0000 (17:01 +0200)]
Change the osl slogan.

As the text "object storage layer" is already contained in the logo,
we need something different.

14 years agoINSTALL: Add links to man2html and ImageMagick Homepages.
Andre Noll [Mon, 27 Jul 2009 09:33:57 +0000 (11:33 +0200)]
INSTALL: Add links to man2html and ImageMagick Homepages.

14 years agoDowngrade Doxyfile to version 1.5.4.
Andre Noll [Mon, 27 Jul 2009 09:33:09 +0000 (11:33 +0200)]
Downgrade Doxyfile to version 1.5.4.

It must work for Ubuntu Hardy.

14 years agoAdd README/INSTALL and webpage generation stuff.
Andre Noll [Sun, 26 Jul 2009 21:40:54 +0000 (23:40 +0200)]
Add README/INSTALL and webpage generation stuff.

14 years ago.gitignore: Don't ignore foo*
Andre Noll [Sun, 26 Jul 2009 21:39:36 +0000 (23:39 +0200)]
.gitignore: Don't ignore foo*

It matches the new footer.html file :-/

14 years agoosltar: Hide the comment for the __static__ #define.
Andre Noll [Sun, 26 Jul 2009 21:36:58 +0000 (23:36 +0200)]
osltar: Hide the comment for the __static__ #define.

14 years agoosltar.c: Make write_all() static.
Andre Noll [Sun, 26 Jul 2009 21:36:23 +0000 (23:36 +0200)]
osltar.c: Make write_all() static.

14 years agogitignore updates.
Andre Noll [Sun, 26 Jul 2009 21:34:30 +0000 (23:34 +0200)]
gitignore updates.

14 years agoosl.h.in: Minor documentation improvements.
Andre Noll [Sun, 26 Jul 2009 16:26:57 +0000 (18:26 +0200)]
osl.h.in: Minor documentation improvements.

14 years agoosltar: Minor cleanups.
Andre Noll [Sun, 26 Jul 2009 16:26:06 +0000 (18:26 +0200)]
osltar: Minor cleanups.

14 years agoMakefile: Add doxygen comment to the osl_errors enum.
Andre Noll [Sun, 26 Jul 2009 16:24:40 +0000 (18:24 +0200)]
Makefile: Add doxygen comment to the osl_errors enum.

14 years agofsck.c: Make a couple of functions static.
Andre Noll [Tue, 21 Jul 2009 22:34:27 +0000 (00:34 +0200)]
fsck.c: Make a couple of functions static.

14 years agoAdd two examples to illiustrate programming with libosl.
Andre Noll [Mon, 13 Jul 2009 19:08:28 +0000 (21:08 +0200)]
Add two examples to illiustrate programming with libosl.

14 years agoAdd COPYING file.
Andre Noll [Mon, 13 Jul 2009 18:01:29 +0000 (20:01 +0200)]
Add COPYING file.

14 years agoImplement --dry-run option for fsck.
Andre Noll [Mon, 13 Jul 2009 13:24:55 +0000 (15:24 +0200)]
Implement --dry-run option for fsck.

We had this option for quite some time, but it was silently ignored because
the option was never implemented..

14 years agoFix a gcc warning on x86_64.
Andre Noll [Mon, 13 Jul 2009 08:56:37 +0000 (10:56 +0200)]
Fix a gcc warning on x86_64.

fsck.c: In function 'check_for_invalid_objects':
fsck.c:513: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'

14 years agoAdd target for man page, install oslfsck and its man page on make install.
Andre Noll [Sun, 12 Jul 2009 22:12:36 +0000 (00:12 +0200)]
Add target for man page, install oslfsck and its man page on make install.

14 years agoChange copyright year to 2009.
Andre Noll [Sun, 12 Jul 2009 22:11:48 +0000 (00:11 +0200)]
Change copyright year to 2009.

14 years agoReplace underscores with dashes in fsck command line options.
Andre Noll [Sun, 12 Jul 2009 21:42:55 +0000 (23:42 +0200)]
Replace underscores with dashes in fsck command line options.

The auto-generated --detailed-help uses a dash, so use dashes everywhere.

14 years agoSimplify check_index_ranges().
Andre Noll [Sun, 12 Jul 2009 21:40:23 +0000 (23:40 +0200)]
Simplify check_index_ranges().

Use FOR_EACH_MAPPED_COLUMN rather than open-code it.

14 years agofsck: Add some more log messages.
Andre Noll [Sat, 11 Jul 2009 21:25:29 +0000 (23:25 +0200)]
fsck: Add some more log messages.

These were helpful to find the bug which was fixed by the previous patch.

14 years agofsck: Fix a serious bug in prune_mapped_column().
Andre Noll [Sat, 11 Jul 2009 21:24:02 +0000 (23:24 +0200)]
fsck: Fix a serious bug in prune_mapped_column().

This function still contained a relict from the old database format that was changed in commit
6d7dce7f277fc8606fb8d5ed6360660c13a218af.  This caused prune_mapped_column()
to write one byte too much to the data file of a mapped column for each removed row.

Running the buggy oslfsck on a table with mapped columns where rows have been deleted
likely results in data corruption to objects adjacent to the deleted objects.

Worst of all, since only the data files but not the index is affected,  the corruption will not
immediately be noticed, which is probably why it took one year to find this bug. Kill it with
pleasure.