• Alexander Viro's avatar
    [PATCH] (1/5) beginning of getattr series. · 70902864
    Alexander Viro authored
    	added new helpers - vfs_stat(), vfs_lstat() and vfs_fstat().
    	fs/stat.c switched to use them.
    
    Following patches will
    
    	stat(2) variants in arch/* that used to copy inode fields manually
    	switched to vfs_*stat() and partially cleaned up
    
    	irix_...() switched from sys_new*stat() to vfs_*stat() and cleaned
    	up.  Missing LFS check added.
    
    	similar for solaris ones
    
    	ditto for x86 compatibility ones on ia64.
    
    We are almost ready to switch to ->getattr() - let filesystem decide what
    values should go into ->st_... (e.g. for CODA life would become much
    easier if it could just use ->i_size of caching file, for supermount
    we want ->i_ino inherited from underlying fs, etc.)
    
    Another thing that needs to be done is fixing the rest of LFS/uid size
    fsckups in architecture-specific variants of stat() - I've fixed several,
    but quite a few are still there.
    70902864
stat.c 7.68 KB