Skip to contentSkip to conversation

Adding Deprecated Attribute Tags

DISCUSSION Joseph D. Wagner 2 participants 2 messages Nov 14, 2003

lore
Share & tools
lore
#0 lore raw

I formally request that the struct ext2_dir_entry and ext3_dir_entry in the ext2_fs.h and ext3_fs.h files be changed to add the below specified attributes:

struct ext2_dir_entry {

        __u32   inode;                  /* Inode number */
        __u16   rec_len;                /* Directory entry length */
        __u16   name_len;               /* Name length */
        char    name[EXT2_NAME_LEN];    /* File name */

} __attribute__ ((deprecated));

struct ext3_dir_entry {

        __u32   inode;                  /* Inode number */
        __u16   rec_len;                /* Directory entry length */
        __u16   name_len;               /* Name length */
        char    name[EXT3_NAME_LEN];    /* File name */

} __attribute__ ((deprecated));

This will aid future development and debugging to ensure that everyone uses the new struct ext2_dir_entry_2 and can take advantage of the additional fields.

Joseph D. Wagner

#1 lore raw
Quoted 3 lines · Joseph D. Wagner

This will aid future development and debugging to ensure that everyone uses the new struct ext2_dir_entry_2 and can take advantage of the additional fields.

We have a special __deprecated define in include/compiler.h and family to safely mark this (e.g., it defines away on older gcc's and Intel's CC).

Robert Love