[Top] [All Lists]

RE: Quota - grace

To: "Jan Kara" <jack@xxxxxxx>, "Nathan Scott" <nathans@xxxxxxx>
Subject: RE: Quota - grace
From: "Juer Lee" <Juer.Lee@xxxxxxxxxx>
Date: Fri, 10 Aug 2001 12:46:37 +0100
Cc: <linux-xfs@xxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Thread-index: AcEhkTg+P0DlSoMfQNGwu9BIDANoowAAKa7A
Thread-topic: Quota - grace
>> I can help on that one - we had a similar problem in the XFS
>> user space awhile ago.  At the top of quotacheck_v1.c, where
>> <asm/byteorder.h> is, try this...
>> #if defined(__powerpc__) /* ppc fix from: Robert Ramiega 
>(jedi@xxxxxxxxxx) */
>> # define __BYTEORDER_HAS_U64__
>> #endif
>> #include <asm/byteorder.h>
>> [This is derived from cmd/xfsprogs/include/platform_defs.h.in]
>  Yes. This should fix it but I think right fix would be to 
>fix kernel includes
>for ppc - on other architectures __BYTEORDER_HAS_U64__ is 
>defined if __KERNEL__
>is defined or STRICT_ANSI is not defined. On ppc theres && 
>instead of || (probably
>by some accident).
>  To that umode_t thing - I don't know why it was there (this 
>was a part of code
>I took from older utils :)). It seems to me that as everywhere 
>mode_t is in fact
>passed there's not reason for umode_t. So I've changed it to mode_t.
>                                                               Honza
>Jan Kara <jack@xxxxxxx>
>SuSE Labs

Thank you all.

It works, I can use the latest version now:)


<Prev in Thread] Current Thread [Next in Thread>