[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    Re: [uClinux-dev] statfs returns empty structure
From:       "amol sukerkar" <amol.sukerkar () gmail ! com>
Date:       2007-01-29 16:25:24
Message-ID: a48b1edc0701290825hc51828fsdb86a2a9ffa01985 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks, Bob. I don't know if I have the same problem or not. But, I surely
look into it.

Amol

On 1/27/07, Bob Rubendunst <bob@softmach.com> wrote:
>
> Amol,
>
> I don't know if this is related or not, but I remember seeing bad
> return values/structs for stat() (not statfs()) called on 2.4.x uclinux
> when using Uc-libc. I dug deeper and found the structs being used by the
> kernel did not match the structs the user programs use for stat. :-(.
>
> Changing to library to Uclibc instead of Uc-libc fixed the problem. I
> saw this for Coldfire rather than Blackfin, and for a either 2.4.24 or
> 2.4.31, but maybe this will help?
>
> Bob Rubendunst
>
> > From: "amol sukerkar" <amol.sukerkar@gmail.com>
> > Subject: [uClinux-dev] statfs returns empty structure
> > To: "uClinux development list" <uclinux-dev@uclinux.org>
> > Message-ID:
> >       <a48b1edc0701261725s4613a782h687a944fb046853a@mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Hi,
> >      When I do a statfs on a USB thumb drive through my c program, it
> > returns correct values when it is empty. But, it returns an empty
> structure
> > if there are files present on it. Could anyone tell me what's happening?
> > Kernel: 2.4.20
> > Platform: Blackfin BF533
> >      Thanks.
> >
> > Cheers
> > Amol
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>

[Attachment #5 (text/html)]

Thanks, Bob. I don&#39;t know if I have the same problem or not. But, I surely look \
into it.<br><br>Amol<br><br><div><span class="gmail_quote">On 1/27/07, <b \
class="gmail_sendername">Bob Rubendunst</b> &lt;<a href="mailto:bob@softmach.com"> \
bob@softmach.com</a>&gt; wrote:</span><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">Amol,<br><br>I don&#39;t know if this is related or not, but I \
remember seeing bad <br>return values/structs for stat() (not statfs()) called on \
2.4.x uclinux<br>when using Uc-libc. I dug deeper and found the structs being used by \
the<br>kernel did not match the structs the user programs use for stat. :-(. \
<br><br>Changing to library to Uclibc instead of Uc-libc fixed the problem. I<br>saw \
this for Coldfire rather than Blackfin, and for a either 2.4.24 or<br>2.4.31, but \
maybe this will help?<br><br>Bob Rubendunst<br><br>&gt; From: &quot;amol \
sukerkar&quot; &lt; <a \
href="mailto:amol.sukerkar@gmail.com">amol.sukerkar@gmail.com</a>&gt;<br>&gt; \
Subject: [uClinux-dev] statfs returns empty structure<br>&gt; To: &quot;uClinux \
development list&quot; &lt;<a href="mailto:uclinux-dev@uclinux.org"> \
uclinux-dev@uclinux.org</a>&gt;<br>&gt; \
Message-ID:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a \
href="mailto:a48b1edc0701261725s4613a782h687a944fb046853a@mail.gmail.com">a48b1edc0701261725s4613a782h687a944fb046853a@mail.gmail.com</a>&gt;<br>&gt; \
Content-Type: text/plain; charset=&quot;iso-8859-1&quot; <br>&gt;<br>&gt; \
Hi,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When I do a statfs on a USB thumb \
drive through my c program, it<br>&gt; returns correct values when it is empty. But, \
it returns an empty structure<br>&gt; if there are files present on it. Could anyone \
tell me what&#39;s happening? <br>&gt; Kernel: 2.4.20<br>&gt; Platform: Blackfin \
BF533<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks.<br>&gt;<br>&gt; \
Cheers<br>&gt; Amol<br>_______________________________________________<br>uClinux-dev \
mailing list<br><a href="mailto:uClinux-dev@uclinux.org"> \
uClinux-dev@uclinux.org</a><br><a \
href="http://mailman.uclinux.org/mailman/listinfo/uclinux-dev">http://mailman.uclinux.org/mailman/listinfo/uclinux-dev</a><br>This \
message was resent by <a href="mailto:uclinux-dev@uclinux.org"> \
uclinux-dev@uclinux.org</a><br>To unsubscribe see:<br><a \
href="http://mailman.uclinux.org/mailman/options/uclinux-dev">http://mailman.uclinux.org/mailman/options/uclinux-dev</a><br></blockquote></div><br>




_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic