Re: [PATCH 0/3] Extended file stat functions [ver #2]
From: Arnd Bergmann
Date: Wed Jun 30 2010 - 09:31:54 EST
On Wednesday 30 June 2010, Christoph Hellwig wrote:
> The cost of adding a syscall is much smaller
Ack. No need for different struct layout version since we
can add another stat syscall every ten years.
> So adding a few fields of padding at the end for new members is fine,
> but doing overkill of versioning including queries for supported
> versions doesn't.
The ability to request and return a subset of the fields seems useful
regardless and it can be used to avoid the need for this kind of padding.
A sufficient amount of padding wouldn't be too bad either, but I guess
we should not have both the padding _and_ the option for extending the
structure after the padding.
With the padding, the 'size' argument can go away, though I'd argue that
even without the padding we can safely add extra fixed-length fields
when needed and not need a size argument.
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/