[pso] Tema4 Linux super_block

Andrei Costin pso@cursuri.cs.pub.ro
Mon, 8 Aug 2005 07:03:53 -0700 (PDT)


--0-1538218301-1123509833=:22910
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Salut.
 
Am urmatoarea problema. Am functia pitix_fill_super in care vreau sa completez super_block *sb.
 
Initial vreau sa citesc superblocul de pe disc cu urmatorul apel:
bh = __bread(sb->s_bdev, 4096, 0); // superblocul pe disc are 4096 octeti, si e primul bloc.
 
Problema e ca *sb ajunge in fill_super cu sb->s_bdev == NULL.
 
Am incercat sa fac sb->s_bdev = bdget(sb->);, care returna un pointer valid, dar orice access la acesta crash-a la fel.
 
Vreo sugestie pls?
 
Multumesc.
 
Andrei

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--0-1538218301-1123509833=:22910
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>Salut.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Am urmatoarea problema. Am functia pitix_fill_super in care vreau sa completez super_block *sb.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Initial vreau sa citesc superblocul de pe disc cu urmatorul apel:</DIV>
<DIV>bh = __bread(sb-&gt;s_bdev, 4096, 0); // superblocul pe disc are 4096 octeti, si e primul bloc.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Problema e ca *sb ajunge in fill_super cu sb-&gt;s_bdev == NULL.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Am incercat sa fac sb-&gt;s_bdev = bdget(sb-&gt;);, care returna un pointer valid, dar orice access la acesta crash-a la fel.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Vreo sugestie pls?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Multumesc.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Andrei</DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com 
--0-1538218301-1123509833=:22910--