adu creates a database containing disk usage statistics of a given
-directory. It allows to query that database to quickly retrieve usage
-patterns of subdirectories containing files owned by a given user.
+directory. This database can be queried to quickly retrieve, for
+example, the number and the size of all files in a subdirectory owned
+by a given user.
Four different output modes are available: global list, global summary,
user list and user summary. The format of the output may be customized
check_signals();
DEBUG_LOG("----------------- %llu: %s\n", (long long unsigned)current_dir_num, dirname);
ret = adu_opendir(dirname, &dir, &cwd_fd);
- if (ret < 0) {
- if (ret != -ERRNO_TO_ERROR(EACCES))
- return ret;
- WARNING_LOG("permission denied for %s\n", dirname);
+ if (ret < 0) { /* Non-fatal, continue with next dir */
+ WARNING_LOG("skipping dir %s: %s\n", dirname,
+ adu_strerror(-ret));
return 1;
}
while ((entry = readdir(dir))) {
*/
struct atom {
/** The name of the directive. */
- const char const *name;
+ const char *name;
/** Its type. */
enum atom_type type;
};
</h2>
</center>
- <p> André Noll, <a
- href="mailto:maan@tuebingen.mpg.de">maan@tuebingen.mpg.de</a>
- </p> Comments and bug reports are welcome. Please provide
+ <p> Email: André Noll, <a
+ href="mailto:maan@tuebingen.mpg.de">maan@tuebingen.mpg.de</a>,
+ Homepage: <a
+ href="http://people.tuebingen.mpg.de/maan/">http://people.tuebingen.mpg.de/maan/</a>
+ </p>
+
+ Comments and bug reports are welcome. Please provide
enough info such as the version of adu/libosl you are using
and relevant parts of the logs. Including the string [adu]
in the subject line is also a good idea.
static int exec_interactive_command(char *line)
{
- const char const *delim = "\t\n\f\r\v ";
+ const char *delim = "\t\n\f\r\v ";
int i;
char *cmd, *args;
int ret = -E_SYNTAX;
static FILE *output_file;
-__printf_1_2 static int output(const char const *fmt, ...)
+__printf_1_2 static int output(const char *fmt, ...)
{
va_list argp;
int ret;