summaryrefslogtreecommitdiff
path: root/quotaon.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2002-02-22 14:58:32 +0000
committerjkar8572 <jkar8572>2002-02-22 14:58:32 +0000
commit9e20a1be1192cc6b7cb3359d3d1ede263159ae57 (patch)
tree95d850bbce319d18c610501b7a12f9d8cfe73197 /quotaon.c
parent4207cd66eda721e7b6f896585d1e2187717e91b7 (diff)
manpage directories are created during install (Jan Kara)
quotaon writes more explaining messages (Jan Kara) warnquota has configurable config files (Jan Kara)
Diffstat (limited to 'quotaon.c')
-rw-r--r--quotaon.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/quotaon.c b/quotaon.c
index b749037..03d0149 100644
--- a/quotaon.c
+++ b/quotaon.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: quotaon.c,v 1.11 2002/02/22 13:54:54 jkar8572 Exp $"
+#ident "$Id: quotaon.c,v 1.12 2002/02/22 14:58:32 jkar8572 Exp $"
/*
* Turn quota on/off for a filesystem.
@@ -220,7 +220,12 @@ static int quotaonoff(char *quotadev, char *quotadir, char *quotafile, int type,
}
qcmd = QCMD(Q_QUOTAON, type);
if (quotactl(qcmd, quotadev, 0, (void *)quotafile) < 0) {
- errstr(_("using %s on %s [%s]: %s\n"), quotafile, quotadev, quotadir, strerror(errno));
+ if (errno == ENOENT)
+ errstr(_("can't find %s on %s [%s]\n"), quotafile, quotadev, quotadir);
+ else
+ errstr(_("using %s on %s [%s]: %s\n"), quotafile, quotadev, quotadir, strerror(errno));
+ if (errno == EINVAL)
+ errstr(_("Maybe create new quota files with quotacheck(8)?\n"));
return 1;
}
if (flags & STATEFLAG_VERBOSE)