critical impact:
quotactl - some commands missing; Now available in HPUX 11.31 (CrCh5)
Problem description
The quotactl function is different on Tru64 UNIX and HP-UX. Some of the commands do not exist on HP-UX.
The quotactl function is used to manipulate disk quotas. The following commands are not defined on any HP-UX versions :
Q_SETUSE - Sets disk usage limits for the user or group.
Q_SETUSE64 - The difference between Q_SETUSE and this one is that the addr parameter points to a dQBlk64 structure instead of dqblk32 structure.
The following commands, which were not defined on HPUX 11i v2 and earlier , are now available on HPUX 11i v3:
Q_QUOTAINFO - Returns quota information for the file system.
Q_GETQUOTA64 - The difference between Q_GETQUOTA and this one is that the addr parameter points to a dQBlk64 structure instead of dqblk32 structure.
Q_SETQUOTA64 - The difference between Q_SETQUOTA and this one is that the addr parameter points to a dQBlk64 structure instead of dqblk32 structure.
Note: Tru64 UNIX defines dqblk32 and dQBlk64 structures in sys/quota.h; HP-UX does not define these structures. In addition, the dqblk strucure defined in sys/quota.h on HP-UX and ufs/quota.h on Tru64 UNIX differ. See the header file for the differences.
The QCMD macro used to compose the command argument on Tru64 UNIX is not defined on HP-UX.
USRQUOTA and GRPQUOTA types are also not defined on HP-UX. Note that HP-UX supports only user quotas, not group quotas. Identifiers
 GRPQUOTA |
 Q_QUOTAINFO |
 Q_SETUSE |
 QUOTACTL |
 Q_GETQUOTA64 |
 Q_SETQUOTA64 |
 Q_SETUSE64 |
 USRQUOTA |
See also
Solution description
Review the applicable manpages and code.
Remove the occurrences of the commands, macro, and types from your code. Review the application to make applicable changes in order to use the quotactl function on HP-UX. You can replace Q_GETQUOTA64, Q_SETQUOTA64, and Q_SETUSE64 with Q_GETQUOTA, Q_SETQUOTE, and Q_SETUSE, respectively.
The following commands are now available on HPUX 11i v3.
Q_GETQUOTA64, Q_SETQUOTA64 and Q_QUOTAINFO.
See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| 64, CAP |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|