* [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags
@ 2013-05-04 21:35 Radek Pazdera
2013-05-04 21:35 ` [PATCH 1/3] libext2fs: Adding itree feature flag Radek Pazdera
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Radek Pazdera @ 2013-05-04 21:35 UTC (permalink / raw)
To: linux-ext4; +Cc: lczerner, kasparek, Radek Pazdera
Hi,
This very short series that adds the itree flags to e2fsprogs mke2fs
and tune2fs in case someone would like to try the itree patches.
-Radek
Radek Pazdera (3):
libext2fs: Adding itree feature flag
libext2fs: Adding inode flag for itree
mke2fs, tune2fs: Adding support for the itree flag
lib/e2p/feature.c | 2 ++
lib/e2p/pf.c | 1 +
lib/ext2fs/ext2_fs.h | 2 ++
misc/mke2fs.c | 3 ++-
misc/tune2fs.c | 6 ++++--
5 files changed, 11 insertions(+), 3 deletions(-)
--
1.7.11.7
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/3] libext2fs: Adding itree feature flag
2013-05-04 21:35 [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Radek Pazdera
@ 2013-05-04 21:35 ` Radek Pazdera
2013-05-04 21:35 ` [PATCH 2/3] libext2fs: Adding inode flag for itree Radek Pazdera
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Radek Pazdera @ 2013-05-04 21:35 UTC (permalink / raw)
To: linux-ext4; +Cc: lczerner, kasparek, Radek Pazdera
This commit reserves a flag for the itree read-only compatible feature.
EXT4_FEATURE_RO_COMPAT_ITREE 0x1000
Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
---
lib/e2p/feature.c | 2 ++
lib/ext2fs/ext2_fs.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/lib/e2p/feature.c b/lib/e2p/feature.c
index 70815ef..9b15679 100644
--- a/lib/e2p/feature.c
+++ b/lib/e2p/feature.c
@@ -66,6 +66,8 @@ static struct feature feature_list[] = {
"metadata_csum"},
{ E2P_FEATURE_RO_INCOMPAT, EXT4_FEATURE_RO_COMPAT_REPLICA,
"replica" },
+ { E2P_FEATURE_RO_INCOMPAT, EXT4_FEATURE_RO_COMPAT_ITREE,
+ "itree" },
{ E2P_FEATURE_INCOMPAT, EXT2_FEATURE_INCOMPAT_COMPRESSION,
"compression" },
diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h
index 0c0bbcb..be711ce 100644
--- a/lib/ext2fs/ext2_fs.h
+++ b/lib/ext2fs/ext2_fs.h
@@ -739,6 +739,7 @@ struct ext2_super_block {
*/
#define EXT4_FEATURE_RO_COMPAT_METADATA_CSUM 0x0400
#define EXT4_FEATURE_RO_COMPAT_REPLICA 0x0800
+#define EXT4_FEATURE_RO_COMPAT_ITREE 0x1000
#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001
#define EXT2_FEATURE_INCOMPAT_FILETYPE 0x0002
--
1.7.11.7
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] libext2fs: Adding inode flag for itree
2013-05-04 21:35 [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Radek Pazdera
2013-05-04 21:35 ` [PATCH 1/3] libext2fs: Adding itree feature flag Radek Pazdera
@ 2013-05-04 21:35 ` Radek Pazdera
2013-05-04 21:35 ` [PATCH 3/3] mke2fs, tune2fs: Adding support for the itree flag Radek Pazdera
2013-05-05 3:24 ` [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Andreas Dilger
3 siblings, 0 replies; 6+ messages in thread
From: Radek Pazdera @ 2013-05-04 21:35 UTC (permalink / raw)
To: linux-ext4; +Cc: lczerner, kasparek, Radek Pazdera
This commit reserves an inode flag for the itree.
EXT4_ITREE_FL 0x20000000
Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
---
lib/e2p/pf.c | 1 +
lib/ext2fs/ext2_fs.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/lib/e2p/pf.c b/lib/e2p/pf.c
index f116ac3..c70b710 100644
--- a/lib/e2p/pf.c
+++ b/lib/e2p/pf.c
@@ -51,6 +51,7 @@ static struct flags_name flags_array[] = {
{ EXT4_HUGE_FILE_FL, "h", "Huge_file" },
{ FS_NOCOW_FL, "C", "No_COW" },
{ EXT4_INLINE_DATA_FL, "N", "Inline_Data" },
+ { EXT4_ITREE_FL, "r", "Has_Itree" },
{ 0, NULL, NULL }
};
diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h
index be711ce..7bdae5e 100644
--- a/lib/ext2fs/ext2_fs.h
+++ b/lib/ext2fs/ext2_fs.h
@@ -320,6 +320,7 @@ struct ext2_dx_tail {
#define EXT4_SNAPFILE_DELETED_FL 0x04000000 /* Snapshot is being deleted */
#define EXT4_SNAPFILE_SHRUNK_FL 0x08000000 /* Snapshot shrink has completed */
#define EXT4_INLINE_DATA_FL 0x10000000 /* Inode has inline data */
+#define EXT4_ITREE_FL 0x20000000 /* Directory has itree */
#define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */
#define EXT2_FL_USER_VISIBLE 0x004BDFFF /* User visible flags */
--
1.7.11.7
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] mke2fs, tune2fs: Adding support for the itree flag
2013-05-04 21:35 [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Radek Pazdera
2013-05-04 21:35 ` [PATCH 1/3] libext2fs: Adding itree feature flag Radek Pazdera
2013-05-04 21:35 ` [PATCH 2/3] libext2fs: Adding inode flag for itree Radek Pazdera
@ 2013-05-04 21:35 ` Radek Pazdera
2013-05-05 3:24 ` [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Andreas Dilger
3 siblings, 0 replies; 6+ messages in thread
From: Radek Pazdera @ 2013-05-04 21:35 UTC (permalink / raw)
To: linux-ext4; +Cc: lczerner, kasparek, Radek Pazdera
This commit enables the itree feature flag for the mke2fs and tune2fs.
Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
---
misc/mke2fs.c | 3 ++-
misc/tune2fs.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index bbf477a..4bc11b0 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -914,7 +914,8 @@ static __u32 ok_features[3] = {
#ifdef CONFIG_QUOTA
EXT4_FEATURE_RO_COMPAT_QUOTA|
#endif
- EXT4_FEATURE_RO_COMPAT_METADATA_CSUM
+ EXT4_FEATURE_RO_COMPAT_METADATA_CSUM|
+ EXT4_FEATURE_RO_COMPAT_ITREE
};
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 66fbc54..b9173fc 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -148,7 +148,8 @@ static __u32 ok_features[3] = {
#ifdef CONFIG_QUOTA
EXT4_FEATURE_RO_COMPAT_QUOTA |
#endif
- EXT4_FEATURE_RO_COMPAT_METADATA_CSUM
+ EXT4_FEATURE_RO_COMPAT_METADATA_CSUM|
+ EXT4_FEATURE_RO_COMPAT_ITREE
};
static __u32 clear_ok_features[3] = {
@@ -169,7 +170,8 @@ static __u32 clear_ok_features[3] = {
#ifdef CONFIG_QUOTA
EXT4_FEATURE_RO_COMPAT_QUOTA |
#endif
- EXT4_FEATURE_RO_COMPAT_METADATA_CSUM
+ EXT4_FEATURE_RO_COMPAT_METADATA_CSUM|
+ EXT4_FEATURE_RO_COMPAT_ITREE
};
/*
--
1.7.11.7
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags
2013-05-04 21:35 [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Radek Pazdera
` (2 preceding siblings ...)
2013-05-04 21:35 ` [PATCH 3/3] mke2fs, tune2fs: Adding support for the itree flag Radek Pazdera
@ 2013-05-05 3:24 ` Andreas Dilger
2013-05-07 12:47 ` Radek Pazdera
3 siblings, 1 reply; 6+ messages in thread
From: Andreas Dilger @ 2013-05-05 3:24 UTC (permalink / raw)
To: Radek Pazdera
Cc: linux-ext4@vger.kernel.org, lczerner@redhat.com,
kasparek@fit.vutbr.cz, Radek Pazdera
Could you please include some description of what "ITREE" is in the commit comments.
Cheers, Andreas
On 2013-05-04, at 15:35, Radek Pazdera <rpazdera@redhat.com> wrote:
> Hi,
>
> This very short series that adds the itree flags to e2fsprogs mke2fs
> and tune2fs in case someone would like to try the itree patches.
>
> -Radek
>
> Radek Pazdera (3):
> libext2fs: Adding itree feature flag
> libext2fs: Adding inode flag for itree
> mke2fs, tune2fs: Adding support for the itree flag
>
> lib/e2p/feature.c | 2 ++
> lib/e2p/pf.c | 1 +
> lib/ext2fs/ext2_fs.h | 2 ++
> misc/mke2fs.c | 3 ++-
> misc/tune2fs.c | 6 ++++--
> 5 files changed, 11 insertions(+), 3 deletions(-)
>
> --
> 1.7.11.7
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags
2013-05-05 3:24 ` [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Andreas Dilger
@ 2013-05-07 12:47 ` Radek Pazdera
0 siblings, 0 replies; 6+ messages in thread
From: Radek Pazdera @ 2013-05-07 12:47 UTC (permalink / raw)
To: Andreas Dilger
Cc: linux-ext4@vger.kernel.org, lczerner@redhat.com,
kasparek@fit.vutbr.cz
On Sat, May 04, 2013 at 09:24:48PM -0600, Andreas Dilger wrote:
>Could you please include some description of what "ITREE" is in the commit comments.
Oh, that's right, there should be some description with these patches as
well. I'll add it there and repost them.
Thanks!
-Radek
>Cheers, Andreas
>
>On 2013-05-04, at 15:35, Radek Pazdera <rpazdera@redhat.com> wrote:
>
>> Hi,
>>
>> This very short series that adds the itree flags to e2fsprogs mke2fs
>> and tune2fs in case someone would like to try the itree patches.
>>
>> -Radek
>>
>> Radek Pazdera (3):
>> libext2fs: Adding itree feature flag
>> libext2fs: Adding inode flag for itree
>> mke2fs, tune2fs: Adding support for the itree flag
>>
>> lib/e2p/feature.c | 2 ++
>> lib/e2p/pf.c | 1 +
>> lib/ext2fs/ext2_fs.h | 2 ++
>> misc/mke2fs.c | 3 ++-
>> misc/tune2fs.c | 6 ++++--
>> 5 files changed, 11 insertions(+), 3 deletions(-)
>>
>> --
>> 1.7.11.7
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-05-07 12:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-04 21:35 [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Radek Pazdera
2013-05-04 21:35 ` [PATCH 1/3] libext2fs: Adding itree feature flag Radek Pazdera
2013-05-04 21:35 ` [PATCH 2/3] libext2fs: Adding inode flag for itree Radek Pazdera
2013-05-04 21:35 ` [PATCH 3/3] mke2fs, tune2fs: Adding support for the itree flag Radek Pazdera
2013-05-05 3:24 ` [PATCH 0/3] e2fsprogs: Adding itree feature/inode flags Andreas Dilger
2013-05-07 12:47 ` Radek Pazdera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).