From 71369c78fbc9130df172767923c19ed49b1d41fd Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Tue, 23 Nov 2004 15:11:39 +0000 Subject: [PATCH] - apply patch to enable legacy ioctl() programs such as 0.30 stable util-vserver showattr/setattr to set the immulink and barrier high bits - this is patch-2.6.9-final-vs1.9.3-rc3-legacyimmulinkioctl.patch From: Sam Vilain Re: [Vserver] [PATCH] immulink ioctl is not available on vs1.9.3-rc2, even with CONFIG_VSERVER_LEGACY To: vserver@list.linux-vserver.org Date: 10/18/04 12:48 am --- include/linux/ext2_fs.h | 5 +++++ include/linux/ext3_fs.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/linux/ext2_fs.h b/include/linux/ext2_fs.h index 7c6f650c9..cd252c8eb 100644 --- a/include/linux/ext2_fs.h +++ b/include/linux/ext2_fs.h @@ -196,8 +196,13 @@ struct ext2_group_desc #define EXT2_IUNLINK_FL 0x08000000 /* Immutable unlink */ #define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ +#ifdef CONFIG_VSERVER_LEGACY +#define EXT2_FL_USER_VISIBLE 0x0C03DFFF /* User visible flags */ +#define EXT2_FL_USER_MODIFIABLE 0x0C0380FF /* User modifiable flags */ +#else #define EXT2_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */ #define EXT2_FL_USER_MODIFIABLE 0x000380FF /* User modifiable flags */ +#endif /* * ioctl commands diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index 100fba908..7fe32d0be 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h @@ -189,8 +189,13 @@ struct ext3_group_desc #define EXT3_IUNLINK_FL 0x08000000 /* Immutable unlink */ #define EXT3_RESERVED_FL 0x80000000 /* reserved for ext3 lib */ +#ifdef CONFIG_VSERVER_LEGACY +#define EXT3_FL_USER_VISIBLE 0x0C03DFFF /* User visible flags */ +#define EXT3_FL_USER_MODIFIABLE 0x0C0380FF /* User modifiable flags */ +#else #define EXT3_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */ #define EXT3_FL_USER_MODIFIABLE 0x000380FF /* User modifiable flags */ +#endif /* * Inode dynamic state flags -- 2.47.0