<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>The issue with userfaultfd not working with modern Linux kernels
was fixed in 3.4.0 per
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/4508/commits/f861fd3fc6826ab753e0155f15507494d54f7ecb">https://github.com/OSGeo/gdal/pull/4508/commits/f861fd3fc6826ab753e0155f15507494d54f7ecb</a></p>
<p>/vsicurl/ on a netCDF file, with the netCDF driver, cannot work
on non-Linux systems. The HDF5 driver will then trigger.<br>
</p>
<div class="moz-cite-prefix">Le 02/02/2022 à 10:01, Stefan
Blumentrath a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:AM6PR02MB5030CDEE379C9D6386C573A19E279@AM6PR02MB5030.eurprd02.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And thanks for your
swift reply, Jukka.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried different
versions on Linux (Ubuntu: ubuntugis-stable and
ubuntugis-unstable):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.3.2, 3.4.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Fedora:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.3.2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On Windows the latest
OSGeo4W provided version:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">3.4.1 (and there it does
not work)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On my Fedora box
however, I now compiled GDAL 3.4.1, there it seems to work
again…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:NO-BOK" lang="EN-US">From:</span></b><span
style="mso-fareast-language:NO-BOK" lang="EN-US">
Rahkonen Jukka (MML)
<a class="moz-txt-link-rfc2396E" href="mailto:jukka.rahkonen@maanmittauslaitos.fi"><jukka.rahkonen@maanmittauslaitos.fi></a>
<br>
<b>Sent:</b> onsdag 2. februar 2022 09:49<br>
<b>To:</b> Stefan Blumentrath
<a class="moz-txt-link-rfc2396E" href="mailto:Stefan.Blumentrath@nina.no"><Stefan.Blumentrath@nina.no></a>; gdal-dev
<a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev@lists.osgeo.org"><gdal-dev@lists.osgeo.org></a><br>
<b>Subject:</b> Re: netCDF with virtual file system
(/vsicurl/) not working<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FI">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What is your GDAL
version? Check with "gdalinfo --version"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:FI" lang="FI">Lähettäjä:</span></b><span
style="mso-fareast-language:FI" lang="FI"> gdal-dev <<a
href="mailto:gdal-dev-bounces@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Stefan Blumentrath<br>
<b>Lähetetty:</b> keskiviikko 2. helmikuuta 2022 10.36<br>
<b>Vastaanottaja:</b> gdal-dev <<a
href="mailto:gdal-dev@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a>><br>
<b>Aihe:</b> [gdal-dev] netCDF with virtual file system
(/vsicurl/) not working<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have been using GDAL
to access online data sources in netCDF successfully.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">With Ubuntu 20.04, this
unfortunately no longer works with the netCDF driver.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is a reproducible
example:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">gdalinfo -if netCDF
/vsicurl/<a class="moz-txt-link-freetext" href="https://nbstds.met.no/thredds/fileServer/NBS/S2A/2021/02/28/S2A_MSIL1C_20210228T103021_N0202_R108_T35WPU_20210228T201033_DTERRENGDATA.nc">https://nbstds.met.no/thredds/fileServer/NBS/S2A/2021/02/28/S2A_MSIL1C_20210228T103021_N0202_R108_T35WPU_20210228T201033_DTERRENGDATA.nc</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The original error
message (before working around the HDF5 driver) has been
that permissions for the userfaultfd system call were
denied. But if I specify the netCDF driver, the format is
not recognized. Downloading the dataset and opening It
locally works.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I saw some possibly
relevant changes:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a
href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOSGeo%2Fgdal%2Fpull%2F4508&data=04%7C01%7CStefan.Blumentrath%40nina.no%7C712e34b2580542465b6308d9e628e428%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637793885589031036%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8YXTXn0Pc7WWlTK5F6ECh1PocPjazxOahHihakmjpU8%3D&reserved=0"
moz-do-not-send="true">https://github.com/OSGeo/gdal/pull/4508</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a
href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOSGeo%2Fgdal%2Fissues%2F2412&data=04%7C01%7CStefan.Blumentrath%40nina.no%7C712e34b2580542465b6308d9e628e428%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637793885589031036%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9sQzMAyPA54CSZVIdvqkiK0RrFLeainC3FYka0tfPEQ%3D&reserved=0"
moz-do-not-send="true">https://github.com/OSGeo/gdal/issues/2412</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any hint on how to get
that functionality back would be very much appreciated!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Stefan<o:p></o:p></span></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>