[PATCH 1/2] tux3: move TUX3_SUPER_MAGIC to magic.h
Daniel Phillips
daniel at phunq.net
Tue Aug 5 14:20:58 PDT 2014
Hi Chao,
Congratulations on your first Tux3 patch, and welcome to the team.
The basic form of this patch looks good, however, you are missing an explanation of the purpose of
the patch, including how uapi will be using the Tux3 magic. Some of us know why, but it is better to
explain under the assumption that nobody knows the purpose of this. A longer explanation is better.
There are two different subsystems being touched here, so it should be two patches, each with its
own explanation, not a patch series.
Just clean up and repost, no worries.
Regards,
Daniel
On 08/04/2014 02:29 AM, Chao Yu wrote:
> This patch moves TUX3_SUPER_MAGIC to include/uapi/linux/magic.h
>
> Signed-off-by: Chao Yu <chao2.yu at samsung.com>
> ---
> fs/tux3/super.c | 5 -----
> include/uapi/linux/magic.h | 1 +
> 2 files changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/fs/tux3/super.c b/fs/tux3/super.c
> index 931c86d..c2cb4dc 100644
> --- a/fs/tux3/super.c
> +++ b/fs/tux3/super.c
> @@ -12,11 +12,6 @@
> #include <linux/statfs.h>
> #include "kcompat.h"
>
> -/* This will go to include/linux/magic.h */
> -#ifndef TUX3_SUPER_MAGIC
> -#define TUX3_SUPER_MAGIC 0x74757833
> -#endif
> -
> #define trace trace_on
>
> /* FIXME: this should be mount option? */
> diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h
> index 77c6031..51f1e60 100644
> --- a/include/uapi/linux/magic.h
> +++ b/include/uapi/linux/magic.h
> @@ -23,6 +23,7 @@
> #define XENFS_SUPER_MAGIC 0xabba1974
> #define EXT4_SUPER_MAGIC 0xEF53
> #define BTRFS_SUPER_MAGIC 0x9123683E
> +#define TUX3_SUPER_MAGIC 0x74757833
> #define NILFS_SUPER_MAGIC 0x3434
> #define F2FS_SUPER_MAGIC 0xF2F52010
> #define HPFS_SUPER_MAGIC 0xf995e849
More information about the Tux3
mailing list