"Fossies" - the Fresh Open Source Software Archive

Member "quotactl-1.00/quotause/dqblk_v2.h" (9 Oct 2005, 1741 Bytes) of package /linux/privat/old/quotactl-1.00.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "dqblk_v2.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  *
    3  *  Header file for disk format of new quotafile format
    4  *
    5  */
    6 
    7 #ifndef _DQBLK_V2_H
    8 #define _DQBLK_V2_H
    9 
   10 #include <sys/types.h>
   11 
   12 #define Q_V2_GETQUOTA   0x0D00  /* Get limits and usage */
   13 #define Q_V2_SETQUOTA   0x0E00  /* Set limits and usage */
   14 #define Q_V2_SETUSE 0x0F00  /* Set only usage */
   15 #define Q_V2_SETQLIM    0x0700  /* Set only limits */
   16 #define Q_V2_GETINFO    0x0900  /* Get information about quota */
   17 #define Q_V2_SETINFO    0x0A00  /* Set information about quota */
   18 #define Q_V2_SETGRACE   0x0B00  /* Set just grace times in quotafile information */
   19 #define Q_V2_SETFLAGS   0x0C00  /* Set just flags in quotafile information */
   20 #define Q_V2_GETSTATS   0x1100  /* get collected stats (before proc was used) */
   21 
   22 /* Structure for format specific information */
   23 struct v2_mem_dqinfo {
   24     uint dqi_flags;         /* Flags set in quotafile */
   25     uint dqi_blocks;        /* Number of blocks in file */
   26     uint dqi_free_blk;
   27         /* Number of first block in the list of blocks that are totally
   28            free -- all of their entry frames are empty.  Zero if there is
   29            no such block in the file.
   30         */
   31     uint dqi_free_entry;    
   32         /* Number of first block in the list of blocks that are partially
   33            full -- at least one entry frame is occupied and at least one
   34            is empty.  Zero if there is no such block in the file.
   35         */
   36     uint dqi_used_entries;  
   37         /* Number of entries in file - updated by scan_dquots */
   38     uint dqi_data_blocks;
   39         /* Number of data blocks in file - updated by scan_dquots */
   40 };
   41 
   42 struct quotafile_ops;       /* Will be defined later in quotaio.h */
   43 
   44 /* Operations above this format */
   45 extern struct quotafile_ops quotafile_ops_2;
   46 
   47 #endif