[so2] Truncate nu se apelează...

Florin-Alexandru Stancu niflostancu at gmail.com
Mon May 13 12:44:23 EEST 2013


Salut,

Doresc să precizez că funcţia *truncate* din *inode_operations* nu mi se
apelează.
A trebuit să implementez propriul *setattr* şi s-o apelez manual.

În codul sursă, la simple_setattr, scrie:
> simple_setattr is a simple ->setattr implementation without a proper
> implementation of size changes.
>
> It can either be used for in-memory filesystems or special files
> on simple regular filesystems.  *Anything that needs to change on-disk*
> or wire state on size changes *needs its own setattr method*.

Hope it helps.

Florin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so2/attachments/20130513/3b121bf5/attachment.html>


More information about the so2 mailing list