Re: [PATCH 1/3] VFS "stat light" out of fstatat, and fine grainedflags
From: Jeff Garzik
Date: Tue Apr 07 2009 - 19:26:00 EST
Oleg Drokin wrote:
Hello!
This is reworked Mark Fasheh's patch + my earlier patch.
It allows one to specify which specific struct stat fields are needed
out of the fstatat call, and also a request to obtain most uptodate
information for inode (for NFS mostly).
Also it adds AT_STAT_SELF flag to mean that the stat should be executed not
on a path, but on the passed filedecriptor itself.
A first real kernel user for this added in loop block driver that does
not care about size or anything else besides rdev and inode number.
I see various architectures replicate bits of vfs_*stat* in some compat
code, I am not sure if we need to update those as well or not.
This patch does away with all the extra syscalls.
linux-kernel should be included in the discussion of this syscall.
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/