Find or ls I can check for symbolic links, but the file system is very large. About 250GB and I have several of them. <br>I was wondering if  ext3 kept track of these things, apparently it does not. <br><br>At my university, we have physical storage in a filesystem, and we assign professors and students space by doing a symbolic link. Basically I want to keep track of physical storage with virtual/logical storage. Thats why I ask :-)<br>
<br>TIA<br><br><br><br><div class="gmail_quote">On Sun, Jun 22, 2008 at 4:18 AM, Alex Bligh <<a href="mailto:alex@alex.org.uk">alex@alex.org.uk</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
<br>
--On 21 June 2008 22:03:03 -0400 Mag Gam <<a href="mailto:magawake@gmail.com" target="_blank">magawake@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a way to index symbolic links in ext3? For example, I want to<br>
keep track of all symbolic links on the filesystem (soft mainly). I think<br>
I would have to write a wrapper around ln to keep it in a database, but I<br>
was wondering if anyone has done something similar to this.<br>
</blockquote>
<br></div></div>
How about<br>
 find [mount point] -type l -x -print<br>
<br>
Wrapping ln won't do the job completely as (a) it won't track the links<br>
being removed (e.g. via rm), and (b) it won't track links being created<br>
by programs other than ln which use the library or the system call<br>
directly.<br>
<br>
When you say "mainly soft", remember EVERY file /is/ a hard link. Just<br>
some files have more than one. Look at the "-links" option to find, which<br>
is easy enough for normal files though you will have to do a bit of thinking<br>
re hard linked directories, "." and "..".<br><font color="#888888">
<br>
Alex<br>
</font></blockquote></div><br>