Salut,<br><br>Doresc să precizez că funcţia <b>truncate</b> din <b>inode_operations</b> nu mi se apelează.<br>A trebuit să implementez propriul <b>setattr</b> şi s-o apelez manual.<br><br>În codul sursă, la simple_setattr, scrie: <br>
> simple_setattr is a simple ->setattr implementation without a proper<br>> implementation of size changes.<br>> <br>> It can either be used for in-memory filesystems or special files<br>> on simple regular filesystems.  <b>Anything that needs to change on-disk</b><br>
> or wire state on size changes <b>needs its own setattr method</b>.<br><br>Hope it helps.<br><br>Florin.<br><br>