[pso] [tema3]umount freeze - am gasit de unde era
Florin
f.bratu at yahoo.com
Wed May 9 21:46:35 EEST 2007
Am mai dibuit un pic codul si am observat urmatoarele: structura mea super_operations arata asa:
struct super_operations pitix_sops = {
.read_inode = pitix_read_inode,
.put_super = pitix_put_super,
.write_inode = pitix_write_inode,
.delete_inode = pitix_delete_inode,
.clear_inode = pitix_clear_inode,
.statfs = pitix_statfs
};
Daca o folosesc asa, imi ingheata la umount. In schimb, daca scot clear_inode:
struct super_operations pitix_sops = {
.read_inode = pitix_read_inode,
.put_super = pitix_put_super,
.write_inode = pitix_write_inode,
.delete_inode = pitix_delete_inode,
// .clear_inode = pitix_clear_inode,
.statfs = pitix_statfs
};
Imi merge. Nu stiu de ce, dar pur si simplu merge, nu se mai blocheaza.
Eu am implementat clear_inode pt ca vazusem in laborator ca scria despre ea, nu inteleg exact de ce trebuie implementata neaparat. De asemenea, am vazut in sursele Minix ca nu se implementeaza clear_inode. Avand in vedere acestea, pot sa nu mai implementez nici eu clear_inode? Nu am rulat inca testul public, deci intrebarea ar fi daca o tema ce nu implementeaza clear_inode din super_operations trece testele.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070509/6afa91f9/attachment.html
More information about the pso
mailing list