[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's gives following \
errors..</div> <div> </div>
<div>get_it_i_say.c:549: warning: implicit declaration of function \
'strcmp'<br>cc -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':inode.c: \
(.text+0x202): undefined reference to `S_ISDIR'<br>inode.o: In function \
`show_inode':inode.c:(.text+0x2d0): undefined reference to \
`S_ISREG'<br>:inode.c:(.text+0x2f2): undefined reference to `S_ISDIR'<br>: \
inode.c:(.text+0x314): undefined reference to \
`S_ISLNK'<br>:inode.c:(.text+0x336): undefined reference to \
`S_ISCHR'<br>:inode.c:(.text+0x358): undefined reference to \
`S_ISBLK'<br>collect2: ld returned 1 exit status <br>make: *** [giis] Error \
1</div> <div> </div>
<div>What's this errors mean ? what's the problem? </div>
<div>Thanks.</div>
<div>Lakshmipathi.G</div>
<div><br><br><br> </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> \
<<a href="mailto:ext3-users-request@redhat.com">ext3-users-request@redhat.com \
</a>> 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> <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> <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 'help' to <br> \
<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> <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 "Re: Contents of Ext3-users \
digest..."<br> </div><br>Today's Topics:<br><br> 1. User space \
tool to extract ext3 inode information <br> (Aravindan \
Raghuveer)<br> 2. Re: User space tool to extract ext3 inode \
information<br> (Andreas Dilger)<br> 3. Re: User space tool \
to extract ext3 inode information<br> (Aravindan \
Raghuveer)<br> 4. [About kjournald] (Forrest Wang) <br><br><br>---------- \
Forwarded message ----------<br>From: Aravindan Raghuveer <<a \
href="mailto:aravindan_raghu@yahoo.com">aravindan_raghu@yahoo.com</a>><br>To: <a \
href="mailto:ext3-users@redhat.com">ext3-users@redhat.com </a><br>Date: Mon, 16 \
Apr 2007 11:17:12 -0700 (PDT)<br>Subject: 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 LBAs<br>foo \
2, 3<br>bar 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? 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: Andreas Dilger \
<<a href="mailto:adilger@clusterfs.com">adilger@clusterfs.com</a>><br>To: Aravindan \
Raghuveer <<a href="mailto:aravindan_raghu@yahoo.com"> \
aravindan_raghu@yahoo.com</a>><br>Date: Mon, 16 Apr 2007 12:33:29 \
-0600<br>Subject: Re: User space tool to extract ext3 inode information<br>On \
Apr 16, 2007 11:17 -0700, Aravindan Raghuveer wrote:<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 LBAs <br>> foo 2, 3<br>> bar \
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>"debugfs -c -R 'stat /path/to/file' /dev/XXX" \
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: Aravindan Raghuveer <<a \
href="mailto:aravindan_raghu@yahoo.com">aravindan_raghu@yahoo.com</a>><br>To: Andreas \
Dilger < <a href="mailto:adilger@clusterfs.com">adilger@clusterfs.com</a>><br>Date: Mon, \
16 Apr 2007 12:27:24 -0700 (PDT)<br>Subject: 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 < <a onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:adilger@clusterfs.com">adilger@clusterfs.com</a>> wrote:<br><br>> \
On Apr 16, 2007 11:17 -0700, Aravindan Raghuveer<br>> wrote:<br>> > I \
need to write a user space tool that can dump <br>> > logical block addresses \
used by every file in a<br>> ext3<br>> > file system. For example, if file \
foo uses LBAs<br>> 2,3<br>> > and file bar uses LBAs 100,102,156, then \
the<br>> ouptut<br> > > should read:<br>> ><br>> > FILENAME \
LBAs<br>> > foo 2, 3<br>> > bar \
100,102,156<br>> ><br>> > Is there a tool \
that exists that can do this? If<br>> not,<br> > > what would be a good \
strategy to write this tool.<br>> I am<br>> > learning filesystem \
programming and would really<br>> > appreciate any pointers.<br>><br>> \
"debugfs -c -R 'stat /path/to/file' /dev/XXX" <br>> 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>__________________________________________________<br>Do You \
Yahoo!?<br>Tired of spam? 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: "Forrest Wang" <<a \
href="mailto:forrest.wang@qunar.com">forrest.wang@qunar.com</a>><br>To: <<a \
href="mailto:ext3-users@redhat.com"> ext3-users@redhat.com</a>><br>Date: Tue, \
17 Apr 2007 15:52:02 +0800<br>Subject: [About kjournald]<br> <div \
bgcolor="#ffffff"> <div><font size="2">Hi,guys</font></div>
<div><font size="2"></font> </div>
<div><font size="2"> In my server, the process kjournald used much \
more cpu time.</font></div> <div><font size="2"></font> </div>
<div><font size="2"> How can I let my system load \
down?</font></div> <div><font size="2"></font> </div>
<div><font size="2"> Thanks.</font></div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </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