]>
git.tue.mpg.de Git - osl.git/log
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.
Andre Noll [Mon, 27 Jul 2009 15:01:38 +0000 (17:01 +0200)]
README: Trivial typo fix.
Noted by Sebastian Stark.
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.
Andre Noll [Mon, 27 Jul 2009 09:33:57 +0000 (11:33 +0200)]
INSTALL: Add links to man2html and ImageMagick Homepages.
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.
Andre Noll [Sun, 26 Jul 2009 21:40:54 +0000 (23:40 +0200)]
Add README/INSTALL and webpage generation stuff.
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 :-/
Andre Noll [Sun, 26 Jul 2009 21:36:58 +0000 (23:36 +0200)]
osltar: Hide the comment for the __static__ #define.
Andre Noll [Sun, 26 Jul 2009 21:36:23 +0000 (23:36 +0200)]
osltar.c: Make write_all() static.
Andre Noll [Sun, 26 Jul 2009 21:34:30 +0000 (23:34 +0200)]
gitignore updates.
Andre Noll [Sun, 26 Jul 2009 16:26:57 +0000 (18:26 +0200)]
osl.h.in: Minor documentation improvements.
Andre Noll [Sun, 26 Jul 2009 16:26:06 +0000 (18:26 +0200)]
osltar: Minor cleanups.
Andre Noll [Sun, 26 Jul 2009 16:24:40 +0000 (18:24 +0200)]
Makefile: Add doxygen comment to the osl_errors enum.
Andre Noll [Tue, 21 Jul 2009 22:34:27 +0000 (00:34 +0200)]
fsck.c: Make a couple of functions static.
Andre Noll [Mon, 13 Jul 2009 19:08:28 +0000 (21:08 +0200)]
Add two examples to illiustrate programming with libosl.
Andre Noll [Mon, 13 Jul 2009 18:01:29 +0000 (20:01 +0200)]
Add COPYING file.
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..
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'
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.
Andre Noll [Sun, 12 Jul 2009 22:11:48 +0000 (00:11 +0200)]
Change copyright year to 2009.
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.
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.
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.
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.
Andre Noll [Sat, 11 Jul 2009 19:39:27 +0000 (21:39 +0200)]
fsck: Overwrite the backup index file if it exists.
A bit dangerous, but without this change, osfsck always fails if this file exists.
Also, print a bit more information about what is going on.
Andre Noll [Fri, 10 Jul 2009 20:05:55 +0000 (22:05 +0200)]
Fix stale comment.
Andre Noll [Mon, 6 Jul 2009 21:27:01 +0000 (23:27 +0200)]
Remove remaining references to paraslash.
Mostly trivial stuff. We can't change the magic string though, so this will have to
stay "PARASLASH" for the rest of eternity.
Andre Noll [Fri, 12 Jun 2009 19:55:08 +0000 (21:55 +0200)]
Add #ifdef wrapper for osl.h.
This allows to include osl.h more than once.
Andre Noll [Fri, 12 Jun 2009 19:54:19 +0000 (21:54 +0200)]
Return -E_OSL_NOENT if stat/open fails with errno == ENOENT.
This often indicates a non-fatal error, so callers might want to
know.
Andre Noll [Thu, 11 Jun 2009 21:52:20 +0000 (23:52 +0200)]
Kill error.h.
This completes the cleanup of the error handling.
Andre Noll [Thu, 11 Jun 2009 21:47:53 +0000 (23:47 +0200)]
Kill all users of is_errno().
Andre Noll [Thu, 11 Jun 2009 21:19:45 +0000 (23:19 +0200)]
Kill all remaining users of ERRNO_TO_ERROR().
Andre Noll [Thu, 11 Jun 2009 21:06:04 +0000 (23:06 +0200)]
Kill all users of ERRNO_TO_ERROR() in util.c and util.h.
Andre Noll [Thu, 11 Jun 2009 20:49:03 +0000 (22:49 +0200)]
Get rid of all remaining users of ERRNO_TO_ERROR() in osl.c.
Andre Noll [Thu, 11 Jun 2009 20:35:54 +0000 (22:35 +0200)]
Replace ERRNO_TO_ERROR(ENOMEM) by E_OSL_NOMEM.
osl calls should only return osl error codes. Therefore, ERRNO_TO_ERROR()
must die. This is a first step to get rid of this macro.
Andre Noll [Sun, 10 May 2009 19:36:18 +0000 (21:36 +0200)]
rbtree: Add const qualifier to some functions.
The 'rb_first()', 'rb_last()', 'rb_next()' and 'rb_prev()' calls take a pointer
to an RB node or RB root. They do not change the pointed objects, so add a
'const' qualifier.
See commit
f4b477c47332367d35686bd2b808c2156b96d7c7 in the linux source tree.
Andre Noll [Sun, 19 Apr 2009 21:20:51 +0000 (23:20 +0200)]
Merge commit 'athcx/master'
Andre Noll [Sun, 19 Apr 2009 21:20:31 +0000 (23:20 +0200)]
Fix a dead initialization.
Andre Noll [Thu, 16 Apr 2009 14:58:43 +0000 (16:58 +0200)]
Merge commit 'fml/master'
Andre Noll [Mon, 2 Feb 2009 18:27:20 +0000 (19:27 +0100)]
Merge commit 'stark/master'
Andre Noll [Mon, 2 Feb 2009 18:27:13 +0000 (19:27 +0100)]
Fix compilation on FreeBSD.
Sebastian Stark [Sat, 31 Jan 2009 09:12:34 +0000 (10:12 +0100)]
remove oslfsck on 'make clean' as well
Andre Noll [Sat, 10 Jan 2009 22:10:52 +0000 (23:10 +0100)]
Merge commit 'meins/master'
Andre Noll [Tue, 6 Jan 2009 20:54:41 +0000 (21:54 +0100)]
Remove osl_hash_compare().
API change, but as the code is not yet publically available..
Andre Noll [Tue, 6 Jan 2009 20:51:37 +0000 (21:51 +0100)]
Fix two doxygen warnings.
Andre Noll [Sat, 9 Aug 2008 15:06:02 +0000 (17:06 +0200)]
Add a comment to search_rbtree().
Andre Noll [Sat, 9 Aug 2008 15:04:43 +0000 (17:04 +0200)]
osl.h.in: Always include inttypes.h
Andre Noll [Fri, 20 Jun 2008 08:22:33 +0000 (10:22 +0200)]
Get rid of E_INVALID_OBJECT.
It's introduction of the one-byte header for mapped objects
was a bad move because it changes the alignment of mapped objects.
This also simplifies the code a bit. The downside is of course
that this changes the on-disk data format. But hey, this stuff
is still pre-beta, so..
Andre Noll [Wed, 18 Jun 2008 13:35:36 +0000 (15:35 +0200)]
Add missing dependency.
Andre Noll [Fri, 6 Jun 2008 16:13:38 +0000 (18:13 +0200)]
Change type of struct osl_column_description->storage_{type,flags}.
These values get stored in the table index header as 16 bit
quantities, so it does not make sense to use a different size
for the structure.
Andre Noll [Fri, 6 Jun 2008 15:45:39 +0000 (17:45 +0200)]
Change type of struct osl_table_description->flags to uint8_t.
We reserve only one byte in the index header of the table, so it
does not make sense to have this field of type enum.
Fixes:
fsck.c:815: warning: dereferencing type-punned pointer will break strict-aliasing rules
Andre Noll [Fri, 6 Jun 2008 15:24:57 +0000 (17:24 +0200)]
Rename the _S macro to OSL_ERROR.
On NetBSD, _S is already defined.
Andre Noll [Fri, 6 Jun 2008 15:24:16 +0000 (17:24 +0200)]
Let all source files depend on errtab.h
Andre Noll [Fri, 6 Jun 2008 15:01:10 +0000 (17:01 +0200)]
Add Makefile magic for NetBSD.
Andre Noll [Fri, 6 Jun 2008 14:46:50 +0000 (16:46 +0200)]
Merge commit 'fml/master'
Andre Noll [Fri, 6 Jun 2008 14:45:41 +0000 (16:45 +0200)]
fsck objects depend on osl.h.
Andre Noll [Fri, 6 Jun 2008 14:21:29 +0000 (16:21 +0200)]
Simplify Makefile.
Only MacOS needs the braindead .dylib Filenames.
Andre Noll [Fri, 6 Jun 2008 13:49:56 +0000 (15:49 +0200)]
Solaris fixes.
Andre Noll [Fri, 6 Jun 2008 12:54:37 +0000 (14:54 +0200)]
Rename fd.[ch] to util.[ch].
It contains not only fd-related stuff.
Andre Noll [Fri, 6 Jun 2008 12:51:01 +0000 (14:51 +0200)]
Cosmetics.
Andre Noll [Fri, 6 Jun 2008 12:47:12 +0000 (14:47 +0200)]
Remove list.h.
osl does not use lists.
Andre Noll [Fri, 6 Jun 2008 12:43:19 +0000 (14:43 +0200)]
Move and rename para_opendir().
Andre Noll [Fri, 6 Jun 2008 12:36:42 +0000 (14:36 +0200)]
Inline para_fchdir(), move it to fsck.c and rename it.
Andre Noll [Fri, 6 Jun 2008 12:31:40 +0000 (14:31 +0200)]
Rename para_chdir() and make it an inline function.
Andre Noll [Fri, 6 Jun 2008 12:23:00 +0000 (14:23 +0200)]
fsck.c depends on errtab.h.
Andre Noll [Fri, 6 Jun 2008 12:22:42 +0000 (14:22 +0200)]
Kill E_OSL_TRUNC.
Andre Noll [Fri, 6 Jun 2008 09:43:43 +0000 (11:43 +0200)]
Get rid of E_OSL_STAT.
Use system error code instead.
Andre Noll [Fri, 6 Jun 2008 09:36:17 +0000 (11:36 +0200)]
Rename para_truncate() to truncate_file().
Andre Noll [Fri, 6 Jun 2008 09:34:50 +0000 (11:34 +0200)]
Move para_truncate from osl.c to fd.c.
Andre Noll [Fri, 6 Jun 2008 09:33:22 +0000 (11:33 +0200)]
fsck: Rename para_malloc() and friends.
Andre Noll [Fri, 6 Jun 2008 09:23:14 +0000 (11:23 +0200)]
fsck: --database-dir is required, no need to set defaults.
Andre Noll [Fri, 6 Jun 2008 09:20:35 +0000 (11:20 +0200)]
Do not use gengetopt's --version output.
Andre Noll [Fri, 6 Jun 2008 09:18:14 +0000 (11:18 +0200)]
Reformat fsck.ggo and add more help text.
Andre Noll [Fri, 6 Jun 2008 09:04:43 +0000 (11:04 +0200)]
Add .gitignore.
Andre Noll [Fri, 6 Jun 2008 09:03:10 +0000 (11:03 +0200)]
Rename base_dir to database-dir and check in fsck.ggo.
Andre Noll [Fri, 6 Jun 2008 08:53:33 +0000 (10:53 +0200)]
init loglevel.
Global variables that are defined in different object files need to be initialised
on the Mac. Fixes
ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
osl.o private external definition of common _loglevel (size 4)
/usr/bin/libtool: internal link edit command failed
Andre Noll [Fri, 6 Jun 2008 08:44:14 +0000 (10:44 +0200)]
osl.h depends on Makefile.
Andre Noll [Fri, 6 Jun 2008 08:43:42 +0000 (10:43 +0200)]
Error codes must not start with zero.
Andre Noll [Fri, 6 Jun 2008 08:34:27 +0000 (10:34 +0200)]
fsck.o depends also on fsck.cmdline.[ch].
Andre Noll [Thu, 5 Jun 2008 22:33:26 +0000 (00:33 +0200)]
Build oslfsck by default.
Andre Noll [Thu, 5 Jun 2008 22:32:52 +0000 (00:32 +0200)]
fsck cleanups.
Andre Noll [Thu, 5 Jun 2008 22:32:38 +0000 (00:32 +0200)]
Set loglevel and use fsck_cmdline_parser_ext().
Andre Noll [Thu, 5 Jun 2008 22:31:01 +0000 (00:31 +0200)]
Remove para_log() from fsck.c.
oslfsck may use the log function of osl.c.
Andre Noll [Thu, 5 Jun 2008 22:29:56 +0000 (00:29 +0200)]
Make loglevel non-static.
This way, oslfsck can set it to the value given at the command
line to overwrite it. It's not exported though, i.e. it is invisible
to users of libosl.
Andre Noll [Thu, 5 Jun 2008 19:44:42 +0000 (21:44 +0200)]
Fix fsck error codes.
Andre Noll [Thu, 5 Jun 2008 19:17:07 +0000 (21:17 +0200)]
Add oslfsck.
This needs more work, but at least it compiles with only one warning.
Andre Noll [Thu, 5 Jun 2008 19:14:22 +0000 (21:14 +0200)]
Move a couple of functions from osl.c to fd.c.
This makes them available also to fsck (coming soon).
Andre Noll [Thu, 5 Jun 2008 08:29:52 +0000 (10:29 +0200)]
Do not specify LDLAGS twice.
Andre Noll [Thu, 5 Jun 2008 08:27:14 +0000 (10:27 +0200)]
Merge commit 'meins/master'
Andre Noll [Thu, 5 Jun 2008 08:24:11 +0000 (10:24 +0200)]
Kill the MAX macro.
It's unused and produces a warning on Mac OS.
Andre Noll [Thu, 5 Jun 2008 08:20:15 +0000 (10:20 +0200)]
Fix target osl_errors.h on MacOS.
The sed on Mac doesn't understand \n.
Andre Noll [Wed, 4 Jun 2008 21:25:11 +0000 (23:25 +0200)]
Rename para_munmap() to osl_munmap().
Andre Noll [Wed, 4 Jun 2008 21:22:34 +0000 (23:22 +0200)]
Rename para_rename() and move it to fd.h.
Andre Noll [Wed, 4 Jun 2008 21:19:21 +0000 (23:19 +0200)]
Make para_mkdir() static inline and rename it to osl_mkdir().
Andre Noll [Wed, 4 Jun 2008 19:07:51 +0000 (21:07 +0200)]
Makefile improvements.
Cleanups, add documentation and install target.
Andre Noll [Wed, 4 Jun 2008 15:35:23 +0000 (17:35 +0200)]
Fix an embarassing bug in make_message().
Outch.
Andre Noll [Wed, 4 Jun 2008 14:12:14 +0000 (16:12 +0200)]
Fix and document compile options on Darwin.
Andre Noll [Wed, 4 Jun 2008 13:44:28 +0000 (15:44 +0200)]
The linker on MacOS 10.4 does not understand -Wl,-z,defs.
Andre Noll [Wed, 4 Jun 2008 13:41:17 +0000 (15:41 +0200)]
Simply use the major version of the lib also on MacOS.
The braindead idea to use letters instead of numbers for the
major version is only a recommendation, so ignore it.
Andre Noll [Tue, 3 Jun 2008 10:31:14 +0000 (12:31 +0200)]
Move documentation of exported osl functions from osl.c to osl.h.in.
It's better to have this information in osl.h as this is the file
which is visible to the users.