[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Atari machines running Debian?



Michael Schmitz píše v Út 22. 08. 2006 v 17:59 +0200:
> I successfully tested a 2.4.33 both with and without aranym related 
> patches. Occasional filesystem hiccups (ELF header of /bin/ps borked, 
> install of bsdmainutils borked because of some file name getting a 
> spurious character inserted) but that all seems to happen in the buffer 
> cache only - it's gone after reboot.

BTW, I have straced "tar -C /usr/bin -c ." and found out that
'getdents64()' returns those corrupted filenames:

chdir("/usr/bin")
lstat(".")
open(".") = 3
open("/proc/self/fd/3/.", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fstat(4)
fcntl(4, F_SETFD, FD_CLOEXEC)
close(3)
getdents(4, /* 140 entries */, 4096) = 4080

{d_info=72967, d_off=5840, d_type=DT_REG, d_reclen=32, d_name="slabt"}
^^ that should have been "slabtop" but was truncated to "slabt"

'ls', OTOH, opens up the "/usr/bin" directly and then getdents returns
correct "slabtop".

Petr




Reply to: