[X-Unix] Unlinking a file... illegal characters?
Brian Medley
bpm-list-osx-unix at 4321.tv
Fri Feb 25 08:06:52 PST 2005
On Fri, Feb 25, 2005 at 09:37:58AM +0000, Stroller wrote:
> Thank you - this is exactly what I had in mind, except that I couldn't
> see the -1 option in `man ls`.
>
> Unfortunately:
>
> $ ls legoland/
> e??y??y??y??vk??????..??????
> 339 /Volumes/CLEARLIGHT/foo $ ls -lFa -i legoland/
> ls: e??y??y??y??vk??????..??????: File name too long
> total 128
> 731381 drwxrwxrwx 1 stroller admin 32768 22 Nov 03:27 ./
> 772975 drwxrwxrwx 1 stroller admin 32768 25 Feb 01:53 ../
> $
>
> Can you suggest any other way to find the inode number?
Might try this:
#! /usr/bin/perl
use strict;
use warnings;
MAIN:
{
opendir(DIR, ".") or die "error: opendir: $!\n";
my @files = readdir(DIR);
close(DIR);
foreach my $f (@files) {
my $inode = (stat($f))[1];
print "$f: $inode\n";
}
exit 0;
}
Might also try unlinking in perl / python / c. Also, and this is
just a guess, but are you sure the file system checks out ok?
--
~`^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-., \|/ (___) \|/ _,.-=~'`^`
@~./'O o`\.~@
"Knowledge is Power" /__( \___/ )__\ *PPPFFBT!*
-- Francis Bacon `\__`U_/'
_.-=~'``'~=-._.-=~'``'~=-._.-=~'`^`'~= <____|' ^^`'~=-.,__,.-=
~'^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-.,__,.-==--^'~=-.,__,.-=~'`^`
More information about the X-Unix
mailing list