[so2] [Tema 4] truncate

Oana Stroie mail.oana.stroie at gmail.com
Thu Apr 28 22:07:35 EEST 2016


Buna seara,

Incerc sa adaug functia truncate ca si operatie
la pitix_file_inode_operations:

exemplu
struct inode_operations pitix_file_inode_operations = {
.truncate       = pitix_truncate,
.getattr = simple_getattr,
};

Primesc eroarea:error: unknown field ‘truncate’ specified in initializer.

Intr-adevar conform link
<http://lxr.free-electrons.com/source/include/linux/fs.h?v=2.6.35#L1516>
truncate
nu este camp al structurii. Observ ca in lab specifica ca s-a renuntat la
ea de la 3.14 si arhiva descarcata de pe site are 3.13, insa compiland
primesc eroarea.

Multumesc,
Oana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so2/attachments/20160428/2ffa10a4/attachment.html>


More information about the so2 mailing list