Skip Navigation Links | |
Exit Print View | |
Sun QFS and Sun Storage Archive Manager 5.3 Reference Manual Sun QFS and Sun Storage Archive Manager 5.3 Information Library |
1. User Commands (Man Pages Section 1)
2. Maintenance Commands (Man Pages Section 1M)
3. Library Functions (Man Pages Section 3)
4. Library Functions (Man Pages Section 3X)
5. File Formats (Man Pages Section 4)
NAME sam_devstr - Translates numeric device status into character string SYNOPSIS cc [ flag ... ] file ... -L/opt/SUNWsamfs/lib -lsam [library ... ] #include "/opt/SUNWsamfs/include/lib.h" char *sam_devstr(uint_t status) DESCRIPTION sam_devstr() translates an unsigned integer, status, into a character status string based on the bits set in status, returning a pointer to the character string. The meanings of the characters in the string returned are as follows: s--------- Volume is being scanned. m--------- If a file system, the file system is mounted. M--------- The device is in maintenance mode. -E-------- Device received an unrecoverable error. -a-------- Device is auditing. If a file system, it is being archived. --l------- Volume has a label. ---I------ Device is in wait-idle mode. ---A------ Device requires operator attention. ----U----- Unload has been requested. ----C----- Device needs cleaning. -----R---- The device has been requested. ------w--- The device is open for writing. -------o-- The device is open. --------P- The device is positioning (tape only). --------F- All storage slots are occupied (robotic devices only). --------V- The device is verifying media (tape only). --------Q- The device verify media command was canceled (tape only). ---------r Device is ready. If a file system, its disk space is being released. ---------R Device is ready and the volume is read-only. ---------W Device is ready and the cartridge write-protect tab is set. ---------p Device is present. RETURN VALUES A pointer to the character status string is returned. SEE ALSO sam_devstat(3).