[pso] [tema3]put_super
Catalin Morosan
cercetasu2003 at yahoo.com
Tue May 8 00:14:35 EEST 2007
mda. am facut intai cu __bread() si apoi cu sb_bread() si vad ca in sfarsit trece testul din mark_buffer_dirty() dar totusi nu mi s-a actualizat superblockul pe disc...
alte sugestii? :D
----- Original Message ----
From: Octavian Purdila <tavi at cs.pub.ro>
To: pso at cursuri.cs.pub.ro
Sent: Monday, May 7, 2007 8:55:34 PM
Subject: Re: [pso] [tema3]put_super
On Monday 07 May 2007 20:42, Catalin Morosan wrote:
> Am mai analizat problema si se pare ca mie nu-mi trece testul din metoda
> mark_buffer_dirty().
>
> void fastcall mark_buffer_dirty(struct buffer_head *bh)
> {
> if (!buffer_dirty(bh) && !test_set_buffer_dirty(bh))
> __set_page_dirty_nobuffers(bh->b_page);
> }
>
> In primul rand, ce as putea face sa fac sa treaca testul de mai sus, si
> apoi,
Daca nu iti trece testul inseamna ca bufferul e deja dirty. Daca nu se face
flush la umount, inseamna ca bh-ul respectiv nu e asociat cu filesystemul. Il
citesti cumva cu __brelse? Daca da, atunci trebuie sa il citesti cu sb_bread.
> de ce nu am acces la acele 2 metode buffer_dirty() si
> test_set_buffer_dirty()? Nu le gasesc nicaieri in surse.
http://cs.pub.ro/~pso/lxr/source/include/linux/buffer_head.h?v=linux-2.6.18#073
http://cs.pub.ro/~pso/lxr/source/include/linux/buffer_head.h?v=linux-2.6.18#092
_______________________________________________
pso mailing list
pso at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070507/2fdf1f75/attachment.htm
More information about the pso
mailing list