]>
git.tue.mpg.de Git - adu.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Andre Noll [Sat, 31 May 2008 14:21:42 +0000 (16:21 +0200)]
Introduce the osl() wrapper and rename error_txt() to adu_strerror().
This gets rid of the copy of the error codes from libosl.
Also, remove para_fgets() as it is unused.
Andre Noll [Fri, 30 May 2008 20:59:00 +0000 (22:59 +0200)]
Remove and unused variable.
Andre Noll [Fri, 30 May 2008 20:58:48 +0000 (22:58 +0200)]
add_directory(): Fix log message.
Andre Noll [Fri, 30 May 2008 20:56:50 +0000 (22:56 +0200)]
Merge commit 'fml/master'
Andre Noll [Fri, 30 May 2008 16:11:32 +0000 (18:11 +0200)]
Only store the number of the parent dir, not the dir itsself.
This should reduce the size of the database considerably while
also improving performance.
Andre Noll [Fri, 30 May 2008 16:09:13 +0000 (18:09 +0200)]
Check the return value of print_statistics().
It may fail.
Andre Noll [Fri, 30 May 2008 16:08:34 +0000 (18:08 +0200)]
Get rid of the rbtree for the name column.
We never sort by or loopup the dir name.
Andre Noll [Fri, 30 May 2008 13:26:15 +0000 (15:26 +0200)]
Be more verbose if the uid file could not be mapped.
Andre Noll [Fri, 30 May 2008 13:25:23 +0000 (15:25 +0200)]
Inplement the --uid option.
This adds a parser for the --uid argument that fills in the array
of admissible intervals.
In select mode the tables for non-admissible uids are no longer opened.
Therefore we can no longer use the ->table pointer of struct user_info
to find out whether a slot in the hash table is already used. Introduce
the new field ->flags to struct user_info that contains a bit indicating
whether the slot in the hash table is used and another bit that tells
us whether the uid associated with that slot is admissible.
Andre Noll [Fri, 30 May 2008 13:11:44 +0000 (15:11 +0200)]
Fix funny typo in docu to double_hash().
Andre Noll [Fri, 30 May 2008 13:10:51 +0000 (15:10 +0200)]
Fix uid counting.
It was only correct in create mode.
Andre Noll [Thu, 29 May 2008 20:40:51 +0000 (22:40 +0200)]
Remove osl.h and osl_core.h.
They are contained in the osl package.
Andre Noll [Mon, 26 May 2008 23:25:52 +0000 (01:25 +0200)]
Add missing functions to fd.c.
These were previously exported by osl but don't really belong there.
Andre Noll [Mon, 26 May 2008 16:06:45 +0000 (18:06 +0200)]
Implement human-readable output and honor the unit command line options.
Andre Noll [Mon, 26 May 2008 11:55:32 +0000 (13:55 +0200)]
Honor the --limit option.
Andre Noll [Mon, 26 May 2008 09:38:47 +0000 (11:38 +0200)]
Honor the --database_dir option.
Andre Noll [Mon, 26 May 2008 09:24:34 +0000 (11:24 +0200)]
Merge commit 'meins/master'
Conflicts:
Makefile
adu.c
Andre Noll [Mon, 26 May 2008 09:00:56 +0000 (11:00 +0200)]
Get rid of the osl code.
Use libosl instead.
Andre Noll [Mon, 26 May 2008 00:04:40 +0000 (02:04 +0200)]
Add documentation for double_hash().
Andre Noll [Sun, 25 May 2008 23:35:53 +0000 (01:35 +0200)]
Make --loglevel and --S work.
Andre Noll [Sun, 25 May 2008 23:29:30 +0000 (01:29 +0200)]
Add gengetopt support.
First draft of planned options. None is actually implemented so far..
Andre Noll [Sun, 25 May 2008 21:00:30 +0000 (23:00 +0200)]
Implement the select command.
This seperates the creation of the osl tables and the pretty-printing
of the statistics.
To do this, it is necessary to close the tables properly on exit. This
change also fixed some memory leaks.
For the select command the new code reads the uid file and recomputes
the gloabal and the user stats from the osl tables.
Andre Noll [Sun, 25 May 2008 16:35:41 +0000 (18:35 +0200)]
Write the list of all uids to a file.
The select command will need this.
Andre Noll [Sun, 25 May 2008 16:11:18 +0000 (18:11 +0200)]
Add #define for database dir.
Of course, this should be configurabe intstead..
Andre Noll [Sun, 25 May 2008 16:08:27 +0000 (18:08 +0200)]
Replace id table by hash table.
This should make uid lookups much faster. We use a power of two for
the hash table size and open addressing with double hashing to handle
hash collisions.
Sebastian Stark [Tue, 20 May 2008 15:22:00 +0000 (17:22 +0200)]
remove memory leak in scan_dir()
the tmp pointer is used only for directory entries. However, it was allocated
unconditionally and was not freed in case of regular files.
Andre Noll [Tue, 20 May 2008 09:24:54 +0000 (11:24 +0200)]
Merge commit 'stark/master'
Andre Noll [Mon, 19 May 2008 19:46:34 +0000 (21:46 +0200)]
Insert missing tab in stat output.
Andre Noll [Mon, 19 May 2008 19:46:12 +0000 (21:46 +0200)]
Replace dir hash by dir num.
This should work equally well, eats less memory and cpu, and doesn't
require openssl.
Sebastian Stark [Mon, 19 May 2008 16:21:30 +0000 (18:21 +0200)]
put tab between number of files and number of bytes in dir_stats
Sebastian Stark [Mon, 19 May 2008 16:03:10 +0000 (18:03 +0200)]
link against libcrypto instead of libssl
Andre Noll [Mon, 19 May 2008 15:40:01 +0000 (17:40 +0200)]
Initial git checkin.
Not nice, but kinda working.