RE: libquota-devel - broken incomplete package ?

2014-10-17 Thread Pavel Fedin
 Hello!

 I now have a working solution, but... this is Windows!
 
 - Quotas only work on NTFS.  Not even the newer ReFS supports them.
 
 - Quotas only work for users, not for groups.  You can add groups to
 the
   filesystem's quota file (not via the GUI, btw), but they are simply
   ignored because their QuotaUsed is always 0.
 
 - Quotas for inodes obviously won't work.
 
 - Quota time limits are not supported at all.

 Well... At least we can do what we can. I think it still makes sense, because 
now we have quota support. Yes, on Windows quotas are different from e.g. 
Linux, but i guess on different UNIX flavors (Linux vs BSD for example) they 
are also not supposed to work in the same way.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia




Re: libquota-devel - broken incomplete package ?

2014-10-17 Thread Corinna Vinschen
On Oct 17 10:08, Pavel Fedin wrote:
  Hello!
 
  I now have a working solution, but... this is Windows!
  
  - Quotas only work on NTFS.  Not even the newer ReFS supports them.
  
  - Quotas only work for users, not for groups.  You can add groups to
  the
filesystem's quota file (not via the GUI, btw), but they are simply
ignored because their QuotaUsed is always 0.
  
  - Quotas for inodes obviously won't work.
  
  - Quota time limits are not supported at all.
 
  Well... At least we can do what we can. I think it still makes sense,
  because now we have quota support. Yes, on Windows quotas are
  different from e.g. Linux, but i guess on different UNIX flavors
  (Linux vs BSD for example) they are also not supposed to work in the
  same way.

Ok, thanks.  I applied my patch.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpKGIwISJbr6.pgp
Description: PGP signature


Re: libquota-devel - broken incomplete package ?

2014-10-16 Thread Corinna Vinschen
On Sep  4 14:22, Corinna Vinschen wrote:
 On Sep  2 12:29, Corinna Vinschen wrote:
  On Sep  2 13:39, Pavel Fedin wrote:
[...]
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.
 
 I spoke too soon.  This is Windows after all...
 
  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.
 
 I made a first attempt to implement a quotactl function, and failed:
 
 http://social.msdn.microsoft.com/Forums/en-US/c64ce903-86cc-4f41-89ce-e709a0a9f2fb

I now have a working solution, but... this is Windows!

- Quotas only work on NTFS.  Not even the newer ReFS supports them.

- Quotas only work for users, not for groups.  You can add groups to the
  filesystem's quota file (not via the GUI, btw), but they are simply
  ignored because their QuotaUsed is always 0.

- Quotas for inodes obviously won't work.

- Quota time limits are not supported at all.

So all we can do is switching quotas on NTFS on or off, and setting and
getting user's block quotas.

Is that really worth it?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpYuwxYJdLjZ.pgp
Description: PGP signature


Re: libquota-devel - broken incomplete package ?

2014-09-04 Thread Corinna Vinschen
On Sep  2 12:29, Corinna Vinschen wrote:
 On Sep  2 13:39, Pavel Fedin wrote:
   [...]
   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.

I spoke too soon.  This is Windows after all...

 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.

I made a first attempt to implement a quotactl function, and failed:

http://social.msdn.microsoft.com/Forums/en-US/c64ce903-86cc-4f41-89ce-e709a0a9f2fb


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpxkuwjHbGfn.pgp
Description: PGP signature


libquota-devel - broken incomplete package ?

2014-09-02 Thread Pavel Fedin
 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...

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia





Re: libquota-devel - broken incomplete package ?

2014-09-02 Thread Marco Atzeri

On 02/09/2014 11: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 ?


maybe as it reported only in the debug source
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fe2fsprogs-debuginfo%2Fe2fsprogs-debuginfo-1.42.7-1grep=quotaio.h




  BTW, just for interest, does Cygwin actually support quotas ? NT OS should
actually support them i guess...

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia





Re: libquota-devel - broken incomplete package ?

2014-09-02 Thread Corinna Vinschen
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


pgpQEr74u3eLs.pgp
Description: PGP signature