The initial fsck didn't clear it but using fsdb to remove the entry from the parent directory, an fsck -y /usr in singleuser cleard the problem.

Thanks to Joseph Koshy for directing me to fsdb.

Cheers,
        Göran

--On Saturday, June 14, 2008 07:17 +0200 Goran Lowkrantz <[EMAIL PROTECTED]> wrote:

While preparing to upgrade to latest stable, I ran some scripts to verify
that the target was OK and found something that I think I need to fix but
have no clue to how.

This is the essence of what I found:

# ls  /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/PerlIO/*
                autosplit.ix
# ls -la /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/PerlIO/*
ls: : No such file or directory
ls: autosplit.ix: No such file or directory
total 8
drwxr-xr-x   2 root  wheel  2251799813685760 Jun 14 04:06 .
drwxr-xr-x   2 root  wheel  2251799813685760 Jun 14 04:06 .
drwxr-xr-x  24 root  wheel               512 Mar 29 10:33 ..
drwxr-xr-x  24 root  wheel               512 Mar 29 10:33 ..
# stat /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/PerlIO
163 5229427 drwxr-xr-x 2 root wheel 20894350 2251799813685760 "Jun 14
07:07:43 2008" "Jun 14 04:06:44 2008" "Jun 14 04:06:44 2008" "Mar 29
10:33:10 2008" 4096 4 0
/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/PerlIO
# stat
# /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/PerlIO/autosplit.ix
stat:
/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/PerlIO/autosplit.ix:
stat: No such file or directory
# od -c /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/APR/PerlIO | more
0000000    s 313   O  \0  \f  \0 004 001   .  \0  \0  \0   1 313   O  \0
0000020  364 001 004 002   .   .  \0  \0   t 313   O  \0 024  \0  \b  \t
0000040    P   e   r   l   I   O   .   s   o  \0 217 300   u 313   O  \0
0000060  324 001  \b  \t   P   e   r   l   I   O   .   b   s  \0 217 300
0000100   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0001000   \0  \0  \0  \0  \0 002  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0001020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0002000   \0  \0  \0  \0  \0 002  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0002020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0003000   \0  \0  \0  \0  \0 002  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0003020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0004000    v 313   O  \0  \f  \0 004 001   .  \0  \0  \0 335 312   O  \0
0004020   \f  \0 004 002   .   .  \0  \0   w 313   O  \0 350 001  \b  \f
0004040    a   u   t   o   s   p   l   i   t   .   i   x  \0 231   - 351
0004060   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0005000   \0  \0  \0  \0  \0 002  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0005020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0006000   \0  \0  \0  \0  \0 002  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0006020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0007000   \0  \0  \0  \0  \0 002  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0007020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0010000  177   E   L   F 001 001 001  \t  \0  \0  \0  \0  \0  \0  \0  \0
0010020  003  \0 003  \0 001  \0  \0  \0 240  \t  \0  \0   4  \0  \0  \0
0010040  330 025  \0  \0  \0  \0  \0  \0   4  \0      \0 003  \0   (  \0


This does not look like a directory, it looks like a shared library,
PerlIO.so, that somehow got the directory bit set.

First, am I correct in my analysis?
Second, how do I remove the directory bit so I can delete the file?

Host info, dmesg.boot attached:
# uname -a
FreeBSD balder.glz.hidden-powers.com 6.3-STABLE FreeBSD 6.3-STABLE #1:
Thu Feb 28 02:14:05 CET 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/BALDER  i386


Cheers,
        Göran


................................................... the future isMobile

  Goran Lowkrantz <[EMAIL PROTECTED]>
  System Architect, isMobile AB
  Sandviksgatan 81, PO Box 58, S-971 03 Luleå, Sweden
  Mobile: +46(0)70-587 87 82
http://www.ismobile.com ...............................................



................................................... the future isMobile

 Goran Lowkrantz <[EMAIL PROTECTED]>
 System Architect, isMobile AB
 Sandviksgatan 81, PO Box 58, S-971 03 Luleå, Sweden
 Mobile: +46(0)70-587 87 82
http://www.ismobile.com ...............................................
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to