<?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: NetApp C-Mode (8.2) :- Unable to open offline file having file path greater than 1040 chars in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/NetApp-C-Mode-8-2-Unable-to-open-offline-file-having-file-path-greater-than-1040/m-p/33376#M7831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="color: #1f497d;"&gt;Is this issue only with offline files? We do have limits on path length (1024 bytes) and this should hold for any file path. Windows also have path limit (&lt;A href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath)" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath)&lt;/A&gt; of 260 unless some special syntax is used. I see you are using path with prefix (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Segoe UI','sans-serif'; color: #454545;"&gt;"\\?\UNC\"&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: #1f497d;"&gt;) which allows the client to send long paths (upto 32767 cahracters) and ontap does not support such long paths. I believe this is the same behavior in 7-mode as well. Is this change of behavior from 7-mode?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 07:40:23 GMT</pubDate>
    <dc:creator>sandeepj</dc:creator>
    <dc:date>2014-06-20T07:40:23Z</dc:date>
    <item>
      <title>NetApp C-Mode (8.2) :- Unable to open offline file having file path greater than 1040 chars</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/NetApp-C-Mode-8-2-Unable-to-open-offline-file-having-file-path-greater-than-1040/m-p/33371#M7828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to open file after setting offline attribute for file path greater than 1040 characters. If the file path is less than 1040 characters then everything is working fine. &lt;/P&gt;&lt;P&gt;After setting offline attribute (&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt; SetFileAttributes(csFilename, (fileAttributes | FILE_ATTRIBUTE_OFFLINE));) &lt;/SPAN&gt;on file (path&amp;gt;1040) opening that file using &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;CreateFile(csFilename, GENERIC_READ|GENERIC_WRITE, 0, NULL, TRUNCATE_EXISTING, FILE_ATTRIBUTE_NORMAL|FILE_FLAG_BACKUP_SEMANTICS, NULL);&lt;/SPAN&gt; fails with error 1359 (internal error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone face this issue before? Is there any limitation from NetApp C-Mode side on maximum characters on file path?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is piece of code&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14029973678168366" jivemacro_uid="_14029973678168366"&gt;&lt;P&gt; CString csFilename(L"\\\\?\\UNC\\adnetcm1.punecft.evault.symantec.com\\AD_Share\\Test\\NetCVol\\1stop\\long\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\1stop\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\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qrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\pqrs\\long\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\abcd\\24.txt");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; HANDLE hFile = ::CreateFile(csFilename, GENERIC_READ|GENERIC_WRITE, 0, NULL, TRUNCATE_EXISTING, FILE_ATTRIBUTE_NORMAL|FILE_FLAG_BACKUP_SEMANTICS, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if (hFile == INVALID_HANDLE_VALUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; printf("Unable to open file handle on file %s, error: %ld", csFilename, GetLastError());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CloseHandle(hFile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; exit(0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CloseHandle(hFile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WIN32_FILE_ATTRIBUTE_DATA data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DWORD fileAttributes = GetFileAttributes(csFilename);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(INVALID_FILE_ATTRIBUTES == fileAttributes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; printf("GetFileAttributes Failed %d", GetLastError());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SetFileAttributes(csFilename, (fileAttributes | FILE_ATTRIBUTE_OFFLINE));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; hFile = ::CreateFile(csFilename, GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL|FILE_FLAG_BACKUP_SEMANTICS, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if (hFile == INVALID_HANDLE_VALUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; printf("Unable to open file handle on file %s, error: %ld", csFilename, GetLastError());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CloseHandle(hFile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; exit(0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CloseHandle(hFile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:34:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/NetApp-C-Mode-8-2-Unable-to-open-offline-file-having-file-path-greater-than-1040/m-p/33371#M7828</guid>
      <dc:creator>CHIRANJIVCCHOUDHARY</dc:creator>
      <dc:date>2025-06-05T05:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp C-Mode (8.2) :- Unable to open offline file having file path greater than 1040 chars</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/NetApp-C-Mode-8-2-Unable-to-open-offline-file-having-file-path-greater-than-1040/m-p/33376#M7831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-IE" style="color: #1f497d;"&gt;Is this issue only with offline files? We do have limits on path length (1024 bytes) and this should hold for any file path. Windows also have path limit (&lt;A href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath)" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath)&lt;/A&gt; of 260 unless some special syntax is used. I see you are using path with prefix (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Segoe UI','sans-serif'; color: #454545;"&gt;"\\?\UNC\"&lt;/SPAN&gt;&lt;SPAN lang="EN-IE" style="color: #1f497d;"&gt;) which allows the client to send long paths (upto 32767 cahracters) and ontap does not support such long paths. I believe this is the same behavior in 7-mode as well. Is this change of behavior from 7-mode?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:40:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/NetApp-C-Mode-8-2-Unable-to-open-offline-file-having-file-path-greater-than-1040/m-p/33376#M7831</guid>
      <dc:creator>sandeepj</dc:creator>
      <dc:date>2014-06-20T07:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp C-Mode (8.2) :- Unable to open offline file having file path greater than 1040 chars</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/NetApp-C-Mode-8-2-Unable-to-open-offline-file-having-file-path-greater-than-1040/m-p/33381#M7834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking into it. I will let you know ASAP.Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 15:00:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/NetApp-C-Mode-8-2-Unable-to-open-offline-file-having-file-path-greater-than-1040/m-p/33381#M7834</guid>
      <dc:creator>CHIRANJIVCCHOUDHARY</dc:creator>
      <dc:date>2014-06-25T15:00:21Z</dc:date>
    </item>
  </channel>
</rss>

