<?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: VServer nfs-exportfs-* mappings in C-mode? in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50127#M428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick -- sorry for the delay, I missed your update...&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;P&gt;I also tried using nfs-exportfs-append-rules.&amp;nbsp; Instead of appending a new rule to the export policy, it changed the rule.&amp;nbsp; I don't know if this is the intention or a bug.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #454545;"&gt;At least then its a documentation bug? (Though modifying a rule that is being applied outside of the context of the provided path would seem to be a major flaw).&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true" style="background-color: #ffffff; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; margin-top: 1em; margin-right: 2em; margin-bottom: 0.5em; margin-left: 2em; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 1em; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; border-style: solid;"&gt;&lt;P&gt;My recommendation is use cluster-mode as it is intended to be used with export policies attached to volumes.&amp;nbsp; If you desire to used the nfs-exportfs-* APIs, I recommend only using nfs-exportfs-list-rules-2.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #454545;"&gt;Unless I'm missing a section in the SDK, there is no way to manage export polices/rules. The only (documented) API's are export-policy-get-iter and export-rule-get-iter so the only way to "use cluster-mode as it is intended" is to "not automate".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #454545;"&gt;As-is, I don't see way to handle the simple use case of "provision a volume and make it accessible via NFS".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 17:51:10 GMT</pubDate>
    <dc:creator>kevingraham</dc:creator>
    <dc:date>2012-10-30T17:51:10Z</dc:date>
    <item>
      <title>VServer nfs-exportfs-* mappings in C-mode?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50112#M426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While I'm really glad to see the nfs-exportsfs-* API's available for C-mode VServers, the documentation doesn't cover how these map onto C-mode's implementation of export policies. The API's are all path-oriented, whereas C-mode manages &lt;A href="https://library.netapp.com/ecmdocs/ECMP1136576/html/GUID-328C86B8-12A9-4EE4-A665-6EEB21D948D9.html" target="_blank"&gt;policies&lt;/A&gt; which are later attached to paths, but I couldn't find any discussion on how this layer of indirection is managed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if multiple exports are using the same policy and the "rule" is modified by the API, does that clone-and-modify the policy and apply it to the path referenced in the API call? Similarly, given the relatively limited number of policies &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:20:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50112#M426</guid>
      <dc:creator>kevingraham</dc:creator>
      <dc:date>2025-06-05T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: VServer nfs-exportfs-* mappings in C-mode?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50117#M427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know, c&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;luster-mode exports do not follow the 7-Mode model of file-based access definition, in which the file &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;system path is described first and then the clients who want to access the file system path.&amp;nbsp; Cluster-mode has e&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;xport polices that are applied to &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;volumes, rather than to particular paths as in 7-Mode.&amp;nbsp; Export paths in cluster-mode are call junctions.&amp;nbsp; This allows volumes to move around, and keep the same export path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From some API experimentation, it looks like that nfs-exportfs-list-rules-2 generates &amp;lt;security-rules&amp;gt; from the export policy assigned to the volume.&amp;nbsp; The &amp;lt;pathname&amp;gt; used is the junction name, not the volume name.&amp;nbsp; For each volume assigned to the export policy, nfs-exportfs-list-rules-2 list the same &amp;lt;security-rules&amp;gt; for a different &amp;lt;pathname&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To list all the export rules in cluster-mode, use export-rule-get-iter.&amp;nbsp; This API describes all the export rules per export-policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using nfs-exportfs-append-rules.&amp;nbsp; Instead of appending a new rule to the export policy, it changed the rule.&amp;nbsp; I don't know if this is the intention or a bug. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My recommendation is use cluster-mode as it is intended to be used with export policies attached to volumes.&amp;nbsp; If you desire to used the nfs-exportfs-* APIs, I recommend only using nfs-exportfs-list-rules-2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - Rick -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 21:59:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50117#M427</guid>
      <dc:creator>rle</dc:creator>
      <dc:date>2012-09-14T21:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: VServer nfs-exportfs-* mappings in C-mode?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50127#M428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick -- sorry for the delay, I missed your update...&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;P&gt;I also tried using nfs-exportfs-append-rules.&amp;nbsp; Instead of appending a new rule to the export policy, it changed the rule.&amp;nbsp; I don't know if this is the intention or a bug.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #454545;"&gt;At least then its a documentation bug? (Though modifying a rule that is being applied outside of the context of the provided path would seem to be a major flaw).&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true" style="background-color: #ffffff; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; margin-top: 1em; margin-right: 2em; margin-bottom: 0.5em; margin-left: 2em; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 1em; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; border-style: solid;"&gt;&lt;P&gt;My recommendation is use cluster-mode as it is intended to be used with export policies attached to volumes.&amp;nbsp; If you desire to used the nfs-exportfs-* APIs, I recommend only using nfs-exportfs-list-rules-2.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #454545;"&gt;Unless I'm missing a section in the SDK, there is no way to manage export polices/rules. The only (documented) API's are export-policy-get-iter and export-rule-get-iter so the only way to "use cluster-mode as it is intended" is to "not automate".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #454545;"&gt;As-is, I don't see way to handle the simple use case of "provision a volume and make it accessible via NFS".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 17:51:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50127#M428</guid>
      <dc:creator>kevingraham</dc:creator>
      <dc:date>2012-10-30T17:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: VServer nfs-exportfs-* mappings in C-mode?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50130#M429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export policy creation is done with Vserver API export-policy-create in Clustered ONTAP 8.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - Rick -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 19:03:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50130#M429</guid>
      <dc:creator>rle</dc:creator>
      <dc:date>2012-10-31T19:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: VServer nfs-exportfs-* mappings in C-mode?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50138#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;P&gt;Rick Ehrhart wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export policy creation is done with Vserver API export-policy-create in Clustered ONTAP 8.1.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got it! I didn't realize that the VServer API's weren't &lt;EM&gt;just&lt;/EM&gt; the 7mode-like API's (and never noticed that whole new category).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps more for the SDK team, but given that they're all lumped together, are there plans to flag ZAPI's as "legacy compatibility" and/or "deprecated"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 22:13:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/VServer-nfs-exportfs-mappings-in-C-mode/m-p/50138#M430</guid>
      <dc:creator>kevingraham</dc:creator>
      <dc:date>2012-10-31T22:13:08Z</dc:date>
    </item>
  </channel>
</rss>

