<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic mounted devices in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865081#M37628</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for CTRL routine to enumerate ONLY mounted devices, along with their volume lables (basically extended information, like show devices/mounted).&lt;/P&gt;&lt;P&gt;I have seen sys$device_scan and some examples of it, but couldnt find how to find device status and volume label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2016 19:03:35 GMT</pubDate>
    <dc:creator>mpradhan</dc:creator>
    <dc:date>2016-06-01T19:03:35Z</dc:date>
    <item>
      <title>mounted devices</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865081#M37628</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for CTRL routine to enumerate ONLY mounted devices, along with their volume lables (basically extended information, like show devices/mounted).&lt;/P&gt;&lt;P&gt;I have seen sys$device_scan and some examples of it, but couldnt find how to find device status and volume label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 19:03:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865081#M37628</guid>
      <dc:creator>mpradhan</dc:creator>
      <dc:date>2016-06-01T19:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: mounted devices</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865093#M37629</link>
      <description>&lt;P&gt;&amp;gt; I have seen sys$device_scan and some examples of it, but couldnt find&lt;BR /&gt;&amp;gt; how to find device status and volume label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $DEVICE_SCAN (sys$device_scan()) has rather limited filtering&lt;BR /&gt;capabilities.&amp;nbsp; If you want to be more selective, then I believe that you&lt;BR /&gt;want to use $GETDVI (sys$getdvi()) to get more information about each&lt;BR /&gt;device, and do your own filtering.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; There's some (probably sub-optimal) code (which checks for mounted&lt;BR /&gt;and mounted foreign) here:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://antinode.info/ftp/qreadcd/qreadcd.c" target="_blank"&gt;http://antinode.info/ftp/qreadcd/qreadcd.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Could all have been done using one call with a longer item list?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For volume label:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://antinode.info/ftp/misc/vol_lab_ss.c" target="_blank"&gt;http://antinode.info/ftp/misc/vol_lab_ss.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/84final/4527/4527pro_contents.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/84final/4527/4527pro_contents.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/84final/4527/4527pro_051.html#get_dev_vol" target="_blank"&gt;http://h71000.www7.hp.com/doc/84final/4527/4527pro_051.html#get_dev_vol&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 19:52:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865093#M37629</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2016-06-01T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: mounted devices</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865117#M37630</link>
      <description>&lt;P&gt;The CRTL on OpenVMS has no concept of this sort of thing — this is available only via system service calls.&lt;/P&gt;&lt;P&gt;You're also potentially headed toward some trouble here, as disks can be mounted on some nodes in a cluster and not on others, and disks can be mounted more than once on the local system. &amp;nbsp; See DVI$_MOUNTCNT and &lt;A href="http://labs.hoffmanlabs.com/node/1887" target="_blank"&gt;DVI$_MOUNTCNT_CLUSTER&lt;/A&gt;, too. &amp;nbsp; Some application programs&amp;nbsp;written in areas related to your question can be a little more subtle than might initially be realized. &amp;nbsp;Put another way, what are you up to here? &amp;nbsp; The OpenVMS version also helps, as some itemcodes — such as that latter one — can require V8.3-1H1 or later, if you don't luck into a backport somewhere.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the basic logic in DCL (&lt;A href="https://groups.google.com/d/msg/comp.os.vms/itrE8igbYCU/Zk03TCpGMm0J" target="_blank"&gt;example&lt;/A&gt;, &lt;A href="https://groups.google.com/d/msg/comp.os.vms/itrE8igbYCU/zsLOdEkR_nYJ" target="_blank"&gt;example&lt;/A&gt;, etc. &amp;nbsp; Also see the SYS$EXAMPLES:MSCPMOUNT.COM examples.) &amp;nbsp;This shows the calls and the itemcodes that can be used.&lt;/P&gt;&lt;P&gt;The volume name is available via&amp;nbsp;DVI$_VOLNAM.&lt;/P&gt;&lt;P&gt;And for background, there are resources:&amp;nbsp;&lt;A href="http://labs.hoffmanlabs.com/node/273" target="_blank"&gt;C programming specific to working on OpenVMS&lt;/A&gt; or if you want &lt;A href="http://www.eight-cubed.com/examples.shtml" target="_blank"&gt;system service examples&lt;/A&gt;. &amp;nbsp;Most system services are similar, so learning the argument passing for one will provide examples of many other calls — there's no longer any large catalog of service-specific examples posted at HPE and VSI hasn't gotten around to providing that. &amp;nbsp;But some of the VMS-isms such as string descriptors can look quite unexpected to anybody accustomed to passing null-terminated strings around in C as is more typical on most platforms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865117#M37630</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2016-06-01T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: mounted devices</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865837#M37631</link>
      <description>&lt;P&gt;I want to enumerate only mounted disks on a given node and get their volume lables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 15:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865837#M37631</guid>
      <dc:creator>mpradhan</dc:creator>
      <dc:date>2016-06-03T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: mounted devices</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865844#M37632</link>
      <description>&lt;P&gt;&amp;gt; I want to enumerate only mounted disks on a given node and get their&lt;BR /&gt;&amp;gt; volume lables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Understood.&amp;nbsp; What's stopping you?&lt;/P&gt;&lt;P&gt;&amp;gt; I have seen sys$device_scan and some examples of it, but couldnt find&lt;BR /&gt;&amp;gt; how to find device status and volume label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And you now have examples of sys$device_scan() and sys$getdvi(),&lt;BR /&gt;which should be enough to do this job (as I understand it).&amp;nbsp; What else&lt;BR /&gt;do you need?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865844#M37632</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2016-06-03T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: mounted devices</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865969#M37633</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1650550"&gt;@mpradhan&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I want to enumerate only mounted disks on a given node and get their volume lables.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which is essentially what was included&amp;nbsp;in the&amp;nbsp;original question. &amp;nbsp; Again, where this can get into trouble is with disks that may not be in the state the developer might have expected; disks mounted privately, disks mounted remotely, multiple mounts of the same device, different sorts of file systems, disks stuck in dismount, etc.&lt;/P&gt;&lt;P&gt;The background that was requested earlier is &lt;STRONG&gt;&lt;EM&gt;why&lt;/EM&gt;&lt;/STRONG&gt; you want to do this; &lt;STRONG&gt;&lt;EM&gt;to what end&lt;/EM&gt;&lt;/STRONG&gt;? &amp;nbsp; (Properly elucidating the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;what&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;and the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;why&lt;/EM&gt;&lt;/STRONG&gt; is where more than a few software product documents and release notes tend to fail to pass muster, too. &amp;nbsp;But I digress.)&lt;/P&gt;&lt;P&gt;Given your other recent postings here, you're working on HPE or third-party add-on system backup software, and these tools involve rather more than just detecting the volume labels. &amp;nbsp;For these and other similar apps, the volume structures and volume states are of interest — ODS-2, ODS-5, ISO-9660, NFS, and whatever VSI is cooking up for their new file system, for instance — and the system may (or will) want to have some idea of locality of mount, for instance. &amp;nbsp;Trying to run a backup on a served volume tends to have poor performance compared with a local backup, for instance. &amp;nbsp; This in addition to managing the file locking — overriding that tends to get data that's somewhere between inconsistent and corrupt — and other related details that have been previously discussed.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 20:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mounted-devices/m-p/6865969#M37633</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2016-06-03T20:45:23Z</dc:date>
    </item>
  </channel>
</rss>

