<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">doesn't this break the partial update of a record?</p><p style="white-space: pre-wrap; word-wrap: break-word;">I would think it's legal to say "I want to updte only the first two bytes of a record" without writing the entire record (which can be long).</p><p style="white-space: pre-wrap; word-wrap: break-word;">Wouldn't your patch now overwrite the remainder of the record with padding?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">This is something I do not know for sure, I never managed to partially update a record, the card always rejected that. Only updating the record as a whole worked for me. I have now checked ETSI TS 102 221, section 11.1.6.1, it reads "This function updates one specific, complete record in the current linear fixed or cyclic EF.", so it seems that it is not possible to partially update a record.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In any case, maybe it makes sense to read the record and use that data as padding? I am not convinced by this, if we for instance encode TLV data the resulting length may vary, if the data is sorter than the data that was in that record before it will leave trash at the end of the new TLV data. <br></p><p><a href="https://gerrit.osmocom.org/c/pysim/+/24008">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/24008">change 24008</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/24008"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I9a5df0e46c3dd2e87d447c5c01cf15844b0eed07 </div>
<div style="display:none"> Gerrit-Change-Number: 24008 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 10 May 2021 16:39:23 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>