This is the mail archive of the cygwin-apps mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sep 2 13:39, Pavel Fedin wrote: > Hello! > > I am trying to build NFS-Ganesha, and it includes rquota protocol support, > which relies on USRQUOTA and GRPQUOTA definitions. > After some searching i have found libquota-devel package which should > apparently be responsible for these. However, inside its only include file i > read the following comments: > --- cut --- > * The typical way to use the quota library is as follows: > * { > * quota_ctx_t qctx; > * > * quota_init_context(&qctx, fs, -1); > * { > * quota_compute_usage(qctx, -1); > * AND/OR > * quota_data_add/quota_data_sub/quota_data_inodes(); > * } > * quota_write_inode(qctx, USRQUOTA); > * quota_write_inode(qctx, GRPQUOTA); > * quota_release_context(&qctx); > * } > --- cut --- > > quota_write_inode() declaration is present, however USRQUOTA and GRPQUOTA > are entirely missing. Even more suspicious thing is include files: > --- cut --- > #include "ext2fs/ext2_fs.h" > #include "ext2fs/ext2fs.h" > #include "quotaio.h" > #include "../e2fsck/dict.h" > --- cut --- > quotaio.h is completely missing in /usr/include. What's wrong ? Is the > package utterly broken ? > > BTW, just for interest, does Cygwin actually support quotas ? NT OS should > actually support them i guess... Sorry, Cygwin doesn't support quota management yet. It can be added relatively easily, AFAICS. There are two ntdll system calls Nt{Query,Set}QuotaInformationFile and a Nt{Query|Set}InformationFile info class FILE_FS_CONTROL_INFORMATION to switch quoat mgmg on and off, which roughly provide the functionality of quotactl, at least as far as the block quota is concerned. Windows doesn't support inode-based or time limit-based quota management. We can look into implementing this at one point, and patches are welcome, of course. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
Attachment:
pgpxjfmg13Oaj.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |