Olivier Mueller wrote:
> I'm trying to get a script working with the p5-Quota module, but no
> way... :
> - quota correctely working for the /home partition
> - tested with edquota/repquota, etc.
>
> But when trying to retrieve information or setup quota information from
> a perl script, I get: Quota::sync: error #45
I guess that's an errno number, and in that case 45 is
EOPNOTSUPP (Operation not supported). It is a bug that
the errno number is not printed as a human-readable
string.
Did you try to use Quota::query? Does it work?
> But what bothers me more is that exactely the same script (with the
> same module) is working fine under linux...
According to the p5-Quota documentation, the Quota::sync
function is not supported on all platforms, so it's
perfectly possible that the p5-Quota code supports it
on Linux, but not on FreeBSD.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"Perl will consistently give you what you want,
unless what you want is consistency."
-- Larry Wall