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

List:       ext3-users
Subject:    Re: Ext3-users Digest, Vol 38, Issue 10
From:       "lakshmi pathi" <lakshmipathi.g () gmail ! com>
Date:       2007-04-18 7:54:17
Message-ID: ae2f51270704180042i3935f8d9ta54e30df47f05ae2 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,
my program works well with fedora-2 .with fedora-5 it's gives following
errors..

get_it_i_say.c:549: warning: implicit declaration of function 'strcmp'
cc  -o giis dir.o file.o get_it_i_say.o group.o init.o inode.o main.o
searchnupdate.o uninit.o
inode.o: In function `read_inode':inode.c:(.text+0x202): undefined reference
to `S_ISDIR'
inode.o: In function `show_inode':inode.c:(.text+0x2d0): undefined reference
to `S_ISREG'
:inode.c:(.text+0x2f2): undefined reference to `S_ISDIR'
:inode.c:(.text+0x314): undefined reference to `S_ISLNK'
:inode.c:(.text+0x336): undefined reference to `S_ISCHR'
:inode.c:(.text+0x358): undefined reference to `S_ISBLK'
collect2: ld returned 1 exit status
make: *** [giis] Error 1

What's this errors mean ? what's the problem?
Thanks.
Lakshmipathi.G




On 4/17/07, ext3-users-request@redhat.com <ext3-users-request@redhat.com>
wrote:
>
> Send Ext3-users mailing list submissions to
>        ext3-users@redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://www.redhat.com/mailman/listinfo/ext3-users
> or, via email, send a message with subject or body 'help' to
>        ext3-users-request@redhat.com
>
> You can reach the person managing the list at
>        ext3-users-owner@redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ext3-users digest..."
>
>
> Today's Topics:
>
>   1. User space tool to extract ext3 inode information
>      (Aravindan Raghuveer)
>   2. Re: User space tool to extract ext3 inode information
>      (Andreas Dilger)
>   3. Re: User space tool to extract ext3 inode information
>      (Aravindan Raghuveer)
>   4. [About kjournald] (Forrest Wang)
>
>
> ---------- Forwarded message ----------
> From: Aravindan Raghuveer <aravindan_raghu@yahoo.com>
> To: ext3-users@redhat.com
> Date: Mon, 16 Apr 2007 11:17:12 -0700 (PDT)
> Subject: User space tool to extract ext3 inode information
> Hello!
>
> I need to write a user space tool that can dump
> logical block addresses used by every file in a ext3
> file system. For example, if file foo uses LBAs 2,3
> and file bar uses LBAs 100,102,156, then the ouptut
> should read:
>
> FILENAME    LBAs
> foo         2, 3
> bar         100,102,156
>
> Is there a tool that exists that can do this? If not,
> what would be a good strategy to write this tool. I am
> learning filesystem programming and would really
> appreciate any pointers.
>
> thanks in advance!!
>
> Regards,
> -Aravind.
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
>
> ---------- Forwarded message ----------
> From: Andreas Dilger <adilger@clusterfs.com>
> To: Aravindan Raghuveer <aravindan_raghu@yahoo.com>
> Date: Mon, 16 Apr 2007 12:33:29 -0600
> Subject: Re: User space tool to extract ext3 inode information
> On Apr 16, 2007  11:17 -0700, Aravindan Raghuveer wrote:
> > I need to write a user space tool that can dump
> > logical block addresses used by every file in a ext3
> > file system. For example, if file foo uses LBAs 2,3
> > and file bar uses LBAs 100,102,156, then the ouptut
> > should read:
> >
> > FILENAME    LBAs
> > foo         2, 3
> > bar         100,102,156
> >
> > Is there a tool that exists that can do this? If not,
> > what would be a good strategy to write this tool. I am
> > learning filesystem programming and would really
> > appreciate any pointers.
>
> "debugfs -c -R 'stat /path/to/file' /dev/XXX" reports, among other things
> the blocks used by that file.
>
> Cheers, Andreas
> --
> Andreas Dilger
> Principal Software Engineer
> Cluster File Systems, Inc.
>
>
>
>
> ---------- Forwarded message ----------
> From: Aravindan Raghuveer <aravindan_raghu@yahoo.com>
> To: Andreas Dilger <adilger@clusterfs.com>
> Date: Mon, 16 Apr 2007 12:27:24 -0700 (PDT)
> Subject: Re: User space tool to extract ext3 inode information
> Hi Andreas,
>
> Thanks a bunch for your quick response! I checked the
> command and the output is terms of filesytem block
> numbers [mine seems to have a 4K block size]. I can
> convert this into LBAs in my perl script.
>
> Thanks again.
>
> Regards,
>
> -Aravind.
>
>
> --- Andreas Dilger <adilger@clusterfs.com> wrote:
>
> > On Apr 16, 2007  11:17 -0700, Aravindan Raghuveer
> > wrote:
> > > I need to write a user space tool that can dump
> > > logical block addresses used by every file in a
> > ext3
> > > file system. For example, if file foo uses LBAs
> > 2,3
> > > and file bar uses LBAs 100,102,156, then the
> > ouptut
> > > should read:
> > >
> > > FILENAME    LBAs
> > > foo         2, 3
> > > bar         100,102,156
> > >
> > > Is there a tool that exists that can do this? If
> > not,
> > > what would be a good strategy to write this tool.
> > I am
> > > learning filesystem programming and would really
> > > appreciate any pointers.
> >
> > "debugfs -c -R 'stat /path/to/file' /dev/XXX"
> > reports, among other things
> > the blocks used by that file.
> >
> > Cheers, Andreas
> > --
> > Andreas Dilger
> > Principal Software Engineer
> > Cluster File Systems, Inc.
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
>
> ---------- Forwarded message ----------
> From: "Forrest Wang" <forrest.wang@qunar.com>
> To: <ext3-users@redhat.com>
> Date: Tue, 17 Apr 2007 15:52:02 +0800
> Subject: [About kjournald]
>  Hi,guys
>
>     In my server, the process kjournald used much more cpu time.
>
>     How can I let my system load down?
>
>     Thanks.
>
>
>
> Forrest Wang
>
> _______________________________________________
> Ext3-users mailing list
> Ext3-users@redhat.com
> https://www.redhat.com/mailman/listinfo/ext3-users
>

[Attachment #5 (text/html)]

<div>Hi,</div>
<div>my program works well with fedora-2 .with fedora-5 it&#39;s gives following \
errors..</div> <div>&nbsp;</div>
<div>get_it_i_say.c:549: warning: implicit declaration of function \
'strcmp'<br>cc&nbsp; -o giis dir.o file.o get_it_i_say.o group.o init.o inode.o \
main.o searchnupdate.o uninit.o<br>inode.o: In function `read_inode&#39;:inode.c: \
(.text+0x202): undefined reference to `S_ISDIR&#39;<br>inode.o: In function \
`show_inode&#39;:inode.c:(.text+0x2d0): undefined reference to \
`S_ISREG&#39;<br>:inode.c:(.text+0x2f2): undefined reference to `S_ISDIR&#39;<br>: \
inode.c:(.text+0x314): undefined reference to \
`S_ISLNK&#39;<br>:inode.c:(.text+0x336): undefined reference to \
`S_ISCHR&#39;<br>:inode.c:(.text+0x358): undefined reference to \
`S_ISBLK&#39;<br>collect2: ld returned 1 exit status <br>make: *** [giis] Error \
1</div> <div>&nbsp;</div>
<div>What&#39;s this errors mean ? what&#39;s the problem? </div>
<div>Thanks.</div>
<div>Lakshmipathi.G</div>
<div><br><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 4/17/07, <b class="gmail_sendername"><a \
href="mailto:ext3-users-request@redhat.com">ext3-users-request@redhat.com</a></b> \
&lt;<a href="mailto:ext3-users-request@redhat.com">ext3-users-request@redhat.com \
</a>&gt; wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; \
MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <div style="DIRECTION: \
ltr">Send Ext3-users mailing list submissions to<br>&nbsp; &nbsp; &nbsp; &nbsp;<a \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:ext3-users@redhat.com">ext3-users@redhat.com</a><br><br>To subscribe or \
unsubscribe via the World Wide Web, visit <br>&nbsp; &nbsp; &nbsp; &nbsp;<a \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="https://www.redhat.com/mailman/listinfo/ext3-users" \
target="_blank">https://www.redhat.com/mailman/listinfo/ext3-users</a><br>or, via \
email, send a message with subject or body &#39;help&#39; to <br>&nbsp; &nbsp; &nbsp; \
&nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:ext3-users-request@redhat.com">ext3-users-request@redhat.com</a><br><br>You \
can reach the person managing the list at<br>&nbsp; &nbsp; &nbsp; &nbsp;<a \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:ext3-users-owner@redhat.com"> \
ext3-users-owner@redhat.com</a><br><br>When replying, please edit your Subject line \
so it is more specific<br>than &quot;Re: Contents of Ext3-users \
digest...&quot;<br>&nbsp;</div><br>Today&#39;s Topics:<br><br>&nbsp; 1. User space \
tool to extract ext3 inode information <br>&nbsp; &nbsp; &nbsp;(Aravindan \
Raghuveer)<br>&nbsp; 2. Re: User space tool to extract ext3 inode \
information<br>&nbsp; &nbsp; &nbsp;(Andreas Dilger)<br>&nbsp; 3. Re: User space tool \
to extract ext3 inode information<br>&nbsp; &nbsp; &nbsp;(Aravindan \
Raghuveer)<br>&nbsp; 4. [About kjournald] (Forrest Wang) <br><br><br>---------- \
Forwarded message ----------<br>From:&nbsp;Aravindan Raghuveer &lt;<a \
href="mailto:aravindan_raghu@yahoo.com">aravindan_raghu@yahoo.com</a>&gt;<br>To:&nbsp;<a \
href="mailto:ext3-users@redhat.com">ext3-users@redhat.com </a><br>Date:&nbsp;Mon, 16 \
Apr 2007 11:17:12 -0700 (PDT)<br>Subject:&nbsp;User space tool to extract ext3 inode \
information<br>Hello!<br><br>I need to write a user space tool that can \
dump<br>logical block addresses used by every file in a ext3 <br>file system. For \
example, if file foo uses LBAs 2,3<br>and file bar uses LBAs 100,102,156, then the \
ouptut<br>should read:<br><br>FILENAME &nbsp; &nbsp;LBAs<br>foo &nbsp; &nbsp; &nbsp; \
&nbsp; 2, 3<br>bar &nbsp; &nbsp; &nbsp; &nbsp; 100,102,156<br><br>Is there a tool \
that exists that can do this? If not, <br>what would be a good strategy to write this \
tool. I am<br>learning filesystem programming and would really<br>appreciate any \
pointers.<br><br>thanks in \
advance!!<br><br>Regards,<br>-Aravind.<br><br><br><br><br><br>__________________________________________________
 <br>Do You Yahoo!?<br>Tired of spam? &nbsp;Yahoo! Mail has the best spam protection \
around<br><a onclick="return top.js.OpenExtLink(window,event,this)" \
href="http://mail.yahoo.com/" target="_blank">http://mail.yahoo.com</a><br> \
<br><br><br><br>---------- Forwarded message ----------<br>From:&nbsp;Andreas Dilger \
&lt;<a href="mailto:adilger@clusterfs.com">adilger@clusterfs.com</a>&gt;<br>To:&nbsp;Aravindan \
Raghuveer &lt;<a href="mailto:aravindan_raghu@yahoo.com"> \
aravindan_raghu@yahoo.com</a>&gt;<br>Date:&nbsp;Mon, 16 Apr 2007 12:33:29 \
-0600<br>Subject:&nbsp;Re: User space tool to extract ext3 inode information<br>On \
Apr 16, 2007 &nbsp;11:17 -0700, Aravindan Raghuveer wrote:<br>&gt; I need to write a \
user space tool that can dump <br>&gt; logical block addresses used by every file in \
a ext3<br>&gt; file system. For example, if file foo uses LBAs 2,3<br>&gt; and file \
bar uses LBAs 100,102,156, then the ouptut<br>&gt; should read:<br>&gt;<br>&gt; \
FILENAME &nbsp; &nbsp;LBAs <br>&gt; foo &nbsp; &nbsp; &nbsp; &nbsp; 2, 3<br>&gt; bar \
&nbsp; &nbsp; &nbsp; &nbsp; 100,102,156<br>&gt;<br>&gt; Is there a tool that exists \
that can do this? If not,<br>&gt; what would be a good strategy to write this tool. I \
am<br>&gt; learning filesystem programming and would really <br>&gt; appreciate any \
pointers.<br><br>&quot;debugfs -c -R &#39;stat /path/to/file&#39; /dev/XXX&quot; \
reports, among other things<br>the blocks used by that file.<br><br>Cheers, \
Andreas<br>--<br>Andreas Dilger<br>Principal Software Engineer <br>Cluster File \
Systems, Inc.<br><br><br><br><br>---------- Forwarded message \
----------<br>From:&nbsp;Aravindan Raghuveer &lt;<a \
href="mailto:aravindan_raghu@yahoo.com">aravindan_raghu@yahoo.com</a>&gt;<br>To:&nbsp;Andreas \
Dilger &lt; <a href="mailto:adilger@clusterfs.com">adilger@clusterfs.com</a>&gt;<br>Date:&nbsp;Mon, \
16 Apr 2007 12:27:24 -0700 (PDT)<br>Subject:&nbsp;Re: User space tool to extract ext3 \
inode information<br>Hi Andreas,<br><br>Thanks a bunch for your quick response! I \
checked the <br>command and the output is terms of filesytem block<br>numbers [mine \
seems to have a 4K block size]. I can<br>convert this into LBAs in my perl \
script.<br><br>Thanks again.<br><br>Regards,<br><br>-Aravind.<br><br><br>--- Andreas \
Dilger &lt; <a onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:adilger@clusterfs.com">adilger@clusterfs.com</a>&gt; wrote:<br><br>&gt; \
On Apr 16, 2007 &nbsp;11:17 -0700, Aravindan Raghuveer<br>&gt; wrote:<br>&gt; &gt; I \
need to write a user space tool that can dump <br>&gt; &gt; logical block addresses \
used by every file in a<br>&gt; ext3<br>&gt; &gt; file system. For example, if file \
foo uses LBAs<br>&gt; 2,3<br>&gt; &gt; and file bar uses LBAs 100,102,156, then \
the<br>&gt; ouptut<br> &gt; &gt; should read:<br>&gt; &gt;<br>&gt; &gt; FILENAME \
&nbsp; &nbsp;LBAs<br>&gt; &gt; foo &nbsp; &nbsp; &nbsp; &nbsp; 2, 3<br>&gt; &gt; bar \
&nbsp; &nbsp; &nbsp; &nbsp; 100,102,156<br>&gt; &gt;<br>&gt; &gt; Is there a tool \
that exists that can do this? If<br>&gt; not,<br> &gt; &gt; what would be a good \
strategy to write this tool.<br>&gt; I am<br>&gt; &gt; learning filesystem \
programming and would really<br>&gt; &gt; appreciate any pointers.<br>&gt;<br>&gt; \
&quot;debugfs -c -R &#39;stat /path/to/file&#39; /dev/XXX&quot; <br>&gt; reports, \
among other things<br>&gt; the blocks used by that file.<br>&gt;<br>&gt; Cheers, \
Andreas<br>&gt; --<br>&gt; Andreas Dilger<br>&gt; Principal Software Engineer<br>&gt; \
Cluster File Systems, Inc.<br>&gt;<br> \
&gt;<br><br><br>__________________________________________________<br>Do You \
Yahoo!?<br>Tired of spam? &nbsp;Yahoo! Mail has the best spam protection around<br><a \
onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.yahoo.com/" \
target="_blank"> http://mail.yahoo.com</a><br><br><br><br><br>---------- Forwarded \
message ----------<br>From:&nbsp;&quot;Forrest Wang&quot; &lt;<a \
href="mailto:forrest.wang@qunar.com">forrest.wang@qunar.com</a>&gt;<br>To:&nbsp;&lt;<a \
href="mailto:ext3-users@redhat.com"> ext3-users@redhat.com</a>&gt;<br>Date:&nbsp;Tue, \
17 Apr 2007 15:52:02 +0800<br>Subject:&nbsp;[About kjournald]<br> <div \
bgcolor="#ffffff"> <div><font size="2">Hi,guys</font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">&nbsp;&nbsp;&nbsp; In my server, the process kjournald used much \
more cpu time.</font></div> <div><font size="2"></font>&nbsp;</div>
<div><font size="2">&nbsp;&nbsp;&nbsp; How can I let my system load \
down?</font></div> <div><font size="2"></font>&nbsp;</div>
<div><font size="2">&nbsp;&nbsp;&nbsp; Thanks.</font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">Forrest \
Wang</font></div></div><br>_______________________________________________<br>Ext3-users \
mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:Ext3-users@redhat.com"> Ext3-users@redhat.com</a><br><a onclick="return \
top.js.OpenExtLink(window,event,this)" \
href="https://www.redhat.com/mailman/listinfo/ext3-users" \
target="_blank">https://www.redhat.com/mailman/listinfo/ext3-users</a><br></blockquote>
 </div><br>



_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

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

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