home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / programm / 5716 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.6 KB

  1. Xref: sparky comp.unix.programmer:5716 comp.sys.sun.admin:9495
  2. Newsgroups: comp.unix.programmer,comp.sys.sun.admin
  3. Path: sparky!uunet!s5!is1.is.morgan.com!is.morgan.com!scairns
  4. From: scairns@is.morgan.com (Scott Cairns)
  5. Subject: sun dkinfo command question
  6. Message-ID: <1992Dec16.112411@is.morgan.com>
  7. Sender: news@is.morgan.com
  8. Nntp-Posting-Host: zamboni
  9. Organization: Fusion Systems Group
  10. Date: Wed, 16 Dec 1992 16:24:11 GMT
  11. Lines: 27
  12.  
  13. I'm working on an application that needs to display dkinfo(8) like
  14. information about disk drives and their partitions.  This is under
  15. SunOS 4.1.
  16.  
  17. So far, I've got it to a point where I can display the starting
  18. cylinder number, the number of cylinders and the tracks/sector
  19. for the drive but I need to get more detailed information about
  20. the partitions.  
  21.  
  22. I've been using ioctl(2) to get the above information but what
  23. calls should I be looking at to get the individual partition
  24. info?
  25.  
  26. Thanks in advance.
  27.  
  28. +------------------------------------------------------------------+
  29. | Scott Cairns               |   email: scairns@fsg.com         |
  30. | Fusion Systems Group        |          scairns@is.morgan.com   |
  31. | New York, New York, USA       |                                  |
  32. +------------------------------------------------------------------+
  33. | Standard disclaimers apply.                      | 
  34. +------------------------------------------------------------------+
  35. | I hope in the future Americans are thought of as a warlike,      |
  36. | vicious people, because then I bet a lot of high schools would   |
  37. | pick 'Americans' as their mascot.                   |
  38. |                        - Jack Handey           |
  39. +------------------------------------------------------------------+
  40.