<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How can the file system (LittleFS) be protected from concurrent accesses?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123013/how-can-the-file-system-littlefs-be-protected-from-concurrent-accesses</link><description>Hello, 
 I know this question is more related to Zephyr than Nordic, but I wanted to try asking here. 
 I’m using the SMP service to send files to my device on a LittleFS partition. I use this partition as a buffer to exchange JSON files with a mobile</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Jul 2025 13:46:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123013/how-can-the-file-system-littlefs-be-protected-from-concurrent-accesses" /><item><title>RE: How can the file system (LittleFS) be protected from concurrent accesses?</title><link>https://devzone.nordicsemi.com/thread/544229?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 13:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d4ab6d8-06a0-4a0f-be9a-efc54c75d73b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;It&amp;#39;s indeed not supported by v2.9.0. You can try the main version or wait for v3.1.0, which might be released at the end of next month.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the file system (LittleFS) be protected from concurrent accesses?</title><link>https://devzone.nordicsemi.com/thread/544183?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 08:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:813f6685-04bd-4380-8c38-2f8251b4aad3</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Hello&lt;br /&gt;&lt;br /&gt;Sorry for the late reply. It does look like exactly what I was looking for. I&amp;rsquo;m able to catch &lt;code data-start="195" data-end="228"&gt;MGMT_EVT_OP_FS_MGMT_FILE_ACCESS&lt;/code&gt;, but unfortunately, &lt;code data-start="249" data-end="287"&gt;MGMT_EVT_OP_FS_MGMT_FILE_ACCESS_DONE&lt;/code&gt; doesn&amp;rsquo;t exist in the SDK version I&amp;rsquo;m using (v2.9.0).&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Aur&amp;eacute;lien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the file system (LittleFS) be protected from concurrent accesses?</title><link>https://devzone.nordicsemi.com/thread/542865?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 12:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:223db591-f89b-4c46-924f-f15f0067e563</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could enable fs grp hooks and then have a function in your application which locks a sempahore upon access and releases it upon being done (though would need to account for what happens in a disconnect because the done would not get called and you would need to handle it yourself) &lt;a title="https://docs.zephyrproject.org/latest/doxygen/html/group__mcumgr__callback__api.html#gga324223c20cbefe3400272e2789082c79a0475953c86b97afa8e4ed30da3f736d3" href="https://docs.zephyrproject.org/latest/doxygen/html/group__mcumgr__callback__api.html#gga324223c20cbefe3400272e2789082c79a0475953c86b97afa8e4ed30da3f736d3" rel="noopener noreferrer" target="_blank"&gt;https://docs.zephyrproject.org/latest/doxygen/html/group__mcumgr__callback__api.html#gga324223c20cbefe3400272e2789082c79a0475953c86b97afa8e4ed30da3f736d3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>