[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/17] ext2fs Merge 2 headers
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 01/17] ext2fs Merge 2 headers |
Date: |
Sun, 23 Jan 2022 10:49:33 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Etienne Brateau, le dim. 23 janv. 2022 05:16:59 +0100, a ecrit:
> * ext2_fs_i.h: merge it into ext2_fs.h. This is also done in the linux tree
Applied, thanks!
> ---
> ext2fs/ext2_fs.h | 22 ++++++++++++++++++++++
> ext2fs/ext2_fs_i.h | 41 -----------------------------------------
> ext2fs/ext2fs.h | 1 -
> 3 files changed, 22 insertions(+), 42 deletions(-)
> delete mode 100644 ext2fs/ext2_fs_i.h
>
> diff --git a/ext2fs/ext2_fs.h b/ext2fs/ext2_fs.h
> index 019ba154..90b1418d 100644
> --- a/ext2fs/ext2_fs.h
> +++ b/ext2fs/ext2_fs.h
> @@ -534,6 +534,28 @@ struct ext2_dir_entry_2 {
> #define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
> ~EXT2_DIR_ROUND)
>
> +/*
> + * second extended file system inode data in memory
> + */
> +struct ext2_inode_info {
> + __u32 i_data[15];
> + __u32 i_flags;
> + __u32 i_faddr;
> + __u8 i_frag_no;
> + __u8 i_frag_size;
> + __u16 i_osync;
> + __u32 i_file_acl;
> + __u32 i_dir_acl;
> + __u32 i_dtime;
> + __u32 not_used_1; /* FIX: not used/ 2.2 placeholder */
> + __u32 i_block_group;
> + __u32 i_next_alloc_block;
> + __u32 i_next_alloc_goal;
> + __u32 i_prealloc_block;
> + __u32 i_prealloc_count;
> + int i_new_inode:1; /* Is a freshly allocated inode */
> +};
> +
> #ifdef __KERNEL__
> /*
> * Function prototypes
> diff --git a/ext2fs/ext2_fs_i.h b/ext2fs/ext2_fs_i.h
> deleted file mode 100644
> index eefdbfaf..00000000
> --- a/ext2fs/ext2_fs_i.h
> +++ /dev/null
> @@ -1,41 +0,0 @@
> -/*
> - * linux/include/linux/ext2_fs_i.h
> - *
> - * Copyright (C) 1992, 1993, 1994, 1995
> - * Remy Card (card@masi.ibp.fr)
> - * Laboratoire MASI - Institut Blaise Pascal
> - * Universite Pierre et Marie Curie (Paris VI)
> - *
> - * from
> - *
> - * linux/include/linux/minix_fs_i.h
> - *
> - * Copyright (C) 1991, 1992 Linus Torvalds
> - */
> -
> -#ifndef _LINUX_EXT2_FS_I
> -#define _LINUX_EXT2_FS_I
> -
> -/*
> - * second extended file system inode data in memory
> - */
> -struct ext2_inode_info {
> - __u32 i_data[15];
> - __u32 i_flags;
> - __u32 i_faddr;
> - __u8 i_frag_no;
> - __u8 i_frag_size;
> - __u16 i_osync;
> - __u32 i_file_acl;
> - __u32 i_dir_acl;
> - __u32 i_dtime;
> - __u32 not_used_1; /* FIX: not used/ 2.2 placeholder */
> - __u32 i_block_group;
> - __u32 i_next_alloc_block;
> - __u32 i_next_alloc_goal;
> - __u32 i_prealloc_block;
> - __u32 i_prealloc_count;
> - int i_new_inode:1; /* Is a freshly allocated inode */
> -};
> -
> -#endif /* _LINUX_EXT2_FS_I */
> diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h
> index ba0eaecd..bc60af7b 100644
> --- a/ext2fs/ext2fs.h
> +++ b/ext2fs/ext2fs.h
> @@ -44,7 +44,6 @@ typedef u_int8_t __u8;
> typedef int8_t __s8;
>
> #include "ext2_fs.h"
> -#include "ext2_fs_i.h"
>
> #define i_mode_high osd2.hurd2.h_i_mode_high /* missing from ext2_fs.h */
>
> --
> 2.34.1
>
>
--
Samuel
<N> je déteste import
<N> parce que lorsque tu fais du python et que tu oublies le #!/bin/env python
et que tu mets le fichier exécutable
<N> import est exécuté
-+- #ens-mim - pourquoi mon script python change le curseur de la souris ?! -+-
- [PATCH 12/17] ext2fs: detect and warn when filesystem is an ext3 fs, (continued)
- [PATCH 12/17] ext2fs: detect and warn when filesystem is an ext3 fs, Etienne Brateau, 2022/01/22
- [PATCH 07/17] ext2fs: use macro to check flags, Etienne Brateau, 2022/01/22
- [PATCH 04/17] move to ext2_fs.h a #define, Etienne Brateau, 2022/01/22
- [PATCH 09/17] ext2fs: set the f_namelen to the correct value, Etienne Brateau, 2022/01/22
- [PATCH 15/17] Change a EIO by a ENOSPC in case where not enough space, Etienne Brateau, 2022/01/22
- Re: [PATCH 01/17] ext2fs Merge 2 headers,
Samuel Thibault <=