<?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 Re: Mount using an NFS file handle in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-using-an-nfs-file-handle/m-p/3528558#M701401</link>
    <description>Stephen,&lt;BR /&gt;I assume you have had alook through the&lt;BR /&gt;/usr/include/sys/mount.h&lt;BR /&gt;Also for somebody elses code:&lt;BR /&gt;&lt;A href="http://www.koders.com/c/fid838F9F10371C15E1D4B681A6A838130D0F99DF4D.aspx" target="_blank"&gt;http://www.koders.com/c/fid838F9F10371C15E1D4B681A6A838130D0F99DF4D.aspx&lt;/A&gt;&lt;BR /&gt;(Have not read ALL the code, but is in the right area I think)&lt;BR /&gt;Regards</description>
    <pubDate>Wed, 20 Apr 2005 06:59:25 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2005-04-20T06:59:25Z</dc:date>
    <item>
      <title>Mount using an NFS file handle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-using-an-nfs-file-handle/m-p/3528557#M701400</link>
      <description>I am trying to mount a fileystem from a remote server using NFS. I can do this from command line OK, but I am trying to do it programatically in C/C++.&lt;BR /&gt;&lt;BR /&gt;I can get the NFS file handle for the file on the remote machine I am interested in, but I can't get the mount(2) command to work I keep getting EINVAL. This is not helped by the fact that I don't actually know what the dataptr argument for the mount(2) command is supposed to be for an NFS mount. I have&lt;BR /&gt;&lt;BR /&gt;fs = ""  (that's what trace showed)&lt;BR /&gt;path = directory path on remote machine&lt;BR /&gt;mflag = MS_DATA (that's what trace showed)&lt;BR /&gt;fstype = "nfs3" (that's what trace showed)&lt;BR /&gt;dataptr = char[64] with first 32 bytes = fhandle returned by clnt_call&lt;BR /&gt;datalen = 64 (that's what trace showed)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Having traced a successful command line mount, I can see that the datalen argument is 64 bytes, so I assume that dataptr is the address of a structure of size 64 bytes. The file handle I get back is only 32 bytes, (as it is a fhandle type) and looks OK. &lt;BR /&gt;&lt;BR /&gt;The clnt_create(), authsys_create_default() and clnt_call() calls all complete successfully.</description>
      <pubDate>Wed, 20 Apr 2005 06:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-using-an-nfs-file-handle/m-p/3528557#M701400</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-20T06:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Mount using an NFS file handle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-using-an-nfs-file-handle/m-p/3528558#M701401</link>
      <description>Stephen,&lt;BR /&gt;I assume you have had alook through the&lt;BR /&gt;/usr/include/sys/mount.h&lt;BR /&gt;Also for somebody elses code:&lt;BR /&gt;&lt;A href="http://www.koders.com/c/fid838F9F10371C15E1D4B681A6A838130D0F99DF4D.aspx" target="_blank"&gt;http://www.koders.com/c/fid838F9F10371C15E1D4B681A6A838130D0F99DF4D.aspx&lt;/A&gt;&lt;BR /&gt;(Have not read ALL the code, but is in the right area I think)&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 20 Apr 2005 06:59:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-using-an-nfs-file-handle/m-p/3528558#M701401</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-04-20T06:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mount using an NFS file handle</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-using-an-nfs-file-handle/m-p/3528559#M701402</link>
      <description>Yes I've had an extensive rummage through the /usr/include area.&lt;BR /&gt;&lt;BR /&gt;I'd seen the file you posted, but as I said when I trace the call the mount system call is being given a 64 byte structure and the nfs_mount_data in the example code is way bigger than that. S'worth a try I guess.</description>
      <pubDate>Wed, 20 Apr 2005 07:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-using-an-nfs-file-handle/m-p/3528559#M701402</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-04-20T07:38:34Z</dc:date>
    </item>
  </channel>
</rss>

