X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=adu.c;h=757054d168e80dbef3ce6c506d6e867fdf5d07dd;hp=09619cfcecdcc49685c218d4249322fa92824fa7;hb=de525e7c5b6592b41f8681f919d5d53406801861;hpb=15c765b696accdce0b20c339876e21e6e5967a52 diff --git a/adu.c b/adu.c index 09619cf..757054d 100644 --- a/adu.c +++ b/adu.c @@ -1,6 +1,8 @@ #include "adu.h" #include /* readdir() */ #include +#include "format.h" +#include "select.h" #include "gcc-compat.h" #include "cmdline.h" @@ -18,6 +20,9 @@ static int signum; /** Command line and config file options. */ struct gengetopt_args_info conf; +/** Options passed to --select-options. */ +struct select_args_info select_conf; + /** The number of different uids found so far. */ uint32_t num_uids = 0; @@ -136,6 +141,15 @@ static struct osl_table_description dir_table_desc = { .column_descriptions = dir_table_cols, }; +/* + * The columns of the per-user tables. + * + * Adu tracks disk usage on a per-user basis. For each user, a user table is + * being created. The rows of the user table have three columns: The directory + * number that may be resolved to the path using the directory table, the + * number of bytes and the number of files in that directory owned by the given + * user. + */ static struct osl_column_description user_table_cols[] = { [UT_DIR_NUM] = { .storage_type = OSL_MAPPED_STORAGE,