Re: [PATCH] statfs64 no longer missing

From: Andi Kleen (ak@muc.de)
Date: Thu Oct 17 2002 - 21:31:05 EST


> --- a/arch/i386/kernel/entry.S Fri Oct 18 10:07:29 2002
> +++ b/arch/i386/kernel/entry.S Fri Oct 18 10:07:29 2002
> @@ -737,6 +737,8 @@
> .long sys_free_hugepages
> .long sys_exit_group
> .long sys_lookup_dcookie
> + .long sys_statfs64
> + .long sys_fstatfs64 /* 255 */

Funny. Finally filling the 8bits for syscall numbers.

> +long vfs_statfs64(struct super_block *sb, struct statfs64 *buf)
> +{
> + struct kstatfs st;
> + int retval;
> +
> + retval = vfs_statfs(sb, &st);
> + if (retval)
> + return retval;
> +
> + if (sizeof(*buf) == sizeof(st))
> + memcpy(buf, &st, sizeof(st));

Don't you need to clear spare here too ?

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:39 EST