Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

quotactl - some commands missing; Now available in HPUX 11.31 (CrCh5)

64 Impacts CAP Impacts

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

C/C++ Misc. IdentifiersGRPQUOTA C/C++ Misc. IdentifiersQ_QUOTAINFO C/C++ Misc. IdentifiersQ_SETUSE C/C++ FunctionsQUOTACTL
C/C++ Misc. IdentifiersQ_GETQUOTA64 C/C++ Misc. IdentifiersQ_SETQUOTA64 C/C++ Misc. IdentifiersQ_SETUSE64 C/C++ Misc. IdentifiersUSRQUOTA

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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.