Bug 3612 - RamFS shows zero st_blocks in fstat (TCB doesn't work)
Summary: RamFS shows zero st_blocks in fstat (TCB doesn't work)
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: kernel-image-std-up (show other bugs)
Version: unstable
Hardware: all Linux
: P2 major
Assignee: Sergey Vlasov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 14:33 MSK by Fr. Br. George
Modified: 2005-08-31 03:06 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.