diff options
author | Petr Písař <ppisar@redhat.com> | 2011-07-01 10:22:10 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-07-14 13:02:50 +0200 |
commit | 1c3bc6d34439f353ea00239dc1ca31239823bb4f (patch) | |
tree | 3c49e2f5b6aec8852516d31c0dc2d2fdc23185f3 | |
parent | 3c0f38a60e0879b4ba1ae9d3cdb3a971951a761f (diff) | |
download | linuxquota-1c3bc6d34439f353ea00239dc1ca31239823bb4f.tar.gz |
get_qf_name() does not check quota file presence
Old error messsage stated a quota file does not exist despite fact
get_qf_name() does not check the file existence. It constructs the
file name only.
This lead to misleading message when running initial `quotacheck -c'
on extended file system mounted with usrquota option only.
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | quotacheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quotacheck.c b/quotacheck.c index 112596b..d8515af 100644 --- a/quotacheck.c +++ b/quotacheck.c @@ -873,12 +873,12 @@ static int sub_quota_file(struct mntent *mnt, int qtype, int ftype) debug(FL_DEBUG, _("Substracting space used by old %s quota file.\n"), type2name(ftype)); if (get_qf_name(mnt, ftype, cfmt, 0, &filename) < 0) { - debug(FL_VERBOSE, _("Old %s file not found. Usage will not be substracted.\n"), type2name(ftype)); + debug(FL_VERBOSE, _("Old %s file name could not been determined. Usage will not be substracted.\n"), type2name(ftype)); return 0; } if (stat(filename, &st) < 0) { - debug(FL_VERBOSE, _("Cannot stat old %s quota file: %s\n"), type2name(ftype), strerror(errno)); + debug(FL_VERBOSE, _("Cannot stat old %s quota file %s: %s. Usage will not be substracted.\n"), type2name(ftype), filename, strerror(errno)); free(filename); return 0; } |