Bug 3612

Summary: RamFS shows zero st_blocks in fstat (TCB doesn't work)
Product: Sisyphus Reporter: Fr. Br. George <george>
Component: kernel-image-std-upAssignee: Sergey Vlasov <vsu>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: major    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description Fr. Br. George 2004-02-06 14:33:26 MSK
When calling fstat64 on some file located on ramfs,
it constantly returns zero in st_blocks parameter.
E.G.
So keeping /etc in ramfs prevented password system from looking in shadow files,
and paswd/login will always fail.

This possibly cause another valuable system components fail.


Steps to Reproduce:
1.mkdir /bup
2.find /etc | cpio -pdm /bup
3.mount -t ramfs none /etc
4. cd /bup/etc
5. find . | cpio -pdm /etc
6. cd /root; strace -vo log passwd
Actual Results:  
passwd: Authentication service cannot retrieve authentication info..
grep fstat log | tail
...
fstat64(... st_blocks=0...)
Comment 1 Sergey Vlasov 2004-02-29 22:05:33 MSK
Fixed in kernel-image-{up,smp}-2.4.25-alt1; please test.