<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
What version of Lustre are you using? &nbsp;Does &quot;filefrag -v&quot; from a newer Lustre e2fsprogs (1.45.6.wc3+) work properly?
<div class=""><br class="">
</div>
<div class="">There was a small change to the Lustre FIEMAP handling in order to handle overstriped files and PFL/FLR files with many stripes and multiple components, since the FIEMAP &quot;restart&quot; mechanism was broken for files that had multiple objects on the
 same OST index. &nbsp;See LU-11484 for details. &nbsp;That change was included in the 2.14.0 release.</div>
<div class=""><br class="">
</div>
<div class="">In essence, the fe_device field now encodes the absolute file stripe number in the high 16 bits of fe_device, and the device number in the low 16 bits (as it did before). &nbsp; Since &quot;filefrag -v&quot; prints fe_device in hex and would show as &quot;0x&lt;stripe&gt;&lt;device&gt;&quot;
 instead of &quot;0x0000&lt;device&gt;&quot;, this was considered an acceptable tradeoff compared to other &quot;less compatible&quot; changes that would have been needed to implement PFL/FLR handling.</div>
<div class=""><br class="">
</div>
<div class="">That said, I would have expected this change to result in your tool reporting very large values for fe_device (e.g. OST index + N * 65536), so returning all-zero values is somewhat unexpected.&nbsp;</div>
<div class=""><br class="">
</div>
<div class="">Cheers, Andreas</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Aug 18, 2022, at 06:27, John Bauer &lt;<a href="mailto:bauerj@iodoctors.com" class="">bauerj@iodoctors.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi all,<br class="">
<br class="">
I am trying to get my llfie program (which uses fiemap) going again, but now the struct fiemap_extent structures I get back from the ioctl call, all have fe_device=0.&nbsp; The output from lfs getstripe indicates that the devices are not all 0.&nbsp; The sum of the fe_length
 members adds up to the file size, so that is working.&nbsp; The fe_physical members look reasonable also.&nbsp; Has something changed?&nbsp; This used to work.<br class="">
<br class="">
Thanks, John<br class="">
<br class="">
pfe27.jbauer2 300&gt; llfie /nobackupp17/jbauer2/dd.dat<br class="">
LustreStripeInfo_get() lum-&gt;lmm_magic=0xbd30bd0<br class="">
listExtents() fe_physical=30643484360704 fe_device=0 fe_length=16777216<br class="">
listExtents() fe_physical=30646084829184 fe_device=0 fe_length=2097152<br class="">
listExtents() fe_physical=5705226518528 fe_device=0 fe_length=16777216<br class="">
listExtents() fe_physical=5710209351680 fe_device=0 fe_length=2097152<br class="">
listExtents() fe_physical=30621271326720 fe_device=0 fe_length=16777216<br class="">
listExtents() fe_physical=31761568366592 fe_device=0 fe_length=16777216<br class="">
listExtents() fe_physical=24757567225856 fe_device=0 fe_length=16777216<br class="">
listExtents() fe_physical=14196460748800 fe_device=0 fe_length=16777216<br class="">
listExtents() nMapped=8 byteCount=104857600<br class="">
<br class="">
<br class="">
pfe27.jbauer2 301&gt; lfs getstripe /nobackupp17/jbauer2/dd.dat<br class="">
/nobackupp17/jbauer2/dd.dat<br class="">
lmm_stripe_count: &nbsp;6<br class="">
lmm_stripe_size: &nbsp;&nbsp;2097152<br class="">
lmm_pattern: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;raid0<br class="">
lmm_layout_gen: &nbsp;&nbsp;&nbsp;0<br class="">
lmm_stripe_offset: 126<br class="">
lmm_pool: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ssd-pool<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>obdidx<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>objid<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>objid<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>group<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&nbsp;&nbsp;126<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13930025<span class="Apple-tab-span" style="white-space:pre"> </span>
&nbsp;&nbsp;&nbsp;&nbsp;0xd48e29<span class="Apple-tab-span" style="white-space:pre"> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&nbsp;&nbsp;113<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13115889<span class="Apple-tab-span" style="white-space:pre"> </span>
&nbsp;&nbsp;&nbsp;&nbsp;0xc821f1<span class="Apple-tab-span" style="white-space:pre"> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&nbsp;&nbsp;120<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;14003176<span class="Apple-tab-span" style="white-space:pre"> </span>
&nbsp;&nbsp;&nbsp;&nbsp;0xd5abe8<span class="Apple-tab-span" style="white-space:pre"> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&nbsp;&nbsp;109<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12785483<span class="Apple-tab-span" style="white-space:pre"> </span>
&nbsp;&nbsp;&nbsp;&nbsp;0xc3174b<span class="Apple-tab-span" style="white-space:pre"> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&nbsp;&nbsp;102<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13811117<span class="Apple-tab-span" style="white-space:pre"> </span>
&nbsp;&nbsp;&nbsp;&nbsp;0xd2bdad<span class="Apple-tab-span" style="white-space:pre"> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>&nbsp;&nbsp;116<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13377285<span class="Apple-tab-span" style="white-space:pre"> </span>
&nbsp;&nbsp;&nbsp;&nbsp;0xcc1f05<span class="Apple-tab-span" style="white-space:pre"> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br class="">
<br class="">
_______________________________________________<br class="">
lustre-discuss mailing list<br class="">
<a href="mailto:lustre-discuss@lists.lustre.org" class="">lustre-discuss@lists.lustre.org</a><br class="">
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Cheers, Andreas</div>
<div>--</div>
<div>Andreas Dilger</div>
<div>Lustre&nbsp;Principal Architect</div>
<div>Whamcloud</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</body>
</html>