diff options
author | Theodore Ts'o <tytso@mit.edu> | 2001-11-05 19:22:02 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2001-11-05 19:22:02 -0500 |
commit | b3f5b4c22939daba86465d05842bce76053bc3cf (patch) | |
tree | 67a743e609620b722ba90347a970ef3eef495088 /misc | |
parent | 6430bd67cef317daebdef7812e87f0e2846b31a7 (diff) | |
download | e2fsprogs-b3f5b4c22939daba86465d05842bce76053bc3cf.tar.gz |
Define a new ext2 file attribute, EXT2_NOTAIL_FL,
which signals that a particular inode should not have the
last bits of data (the "tail") be merged with another
file. This is necessary to keep programs like LILO happy.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ChangeLog | 5 | ||||
-rw-r--r-- | misc/chattr.1.in | 8 | ||||
-rw-r--r-- | misc/chattr.c | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index e83f21f2..d3e9aa5e 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,5 +1,10 @@ 2001-11-05 Theodore Tso <tytso@valinux.com> + * chattr.1.in: Update the man page to document the EXT2_NOTAIL_FL + flag. + + * chattr.c: Add support for the EXT2_NOTAIL_FL flag. + * fsck.c (interpret_type): If the "auto" type is specified, make sure interpet_device() is called so that device specifications which use LABEL= or UUID= are translated diff --git a/misc/chattr.1.in b/misc/chattr.1.in index 815e9c85..82f054bb 100644 --- a/misc/chattr.1.in +++ b/misc/chattr.1.in @@ -19,7 +19,7 @@ chattr \- change file attributes on a Linux second extended file system .B chattr changes the file attributes on a Linux second extended file system. .PP -The format of a symbolic mode is +-=[ASacdisu]. +The format of a symbolic mode is +-=[ASacdistu]. .PP The operator `+' causes the selected attributes to be added to the existing attributes of the files; `-' causes them to be removed; and @@ -74,6 +74,12 @@ When a file with the `S' attribute set is modified, the changes are written synchronously on the disk; this is equivalent to the `sync' mount option applied to a subset of the files. .PP +A file with the 't' attribute will not have a partial block fragment at +the of the file merged with other files (for those filesystems which +support tail-merging). This is necessary for applications such as LILO +which read the filesystem directly, and who don't understand tail-merged +files. +.PP When a file with the `u' attribute set is deleted, its contents are saved. This allows the user to ask for its undeletion. .PP diff --git a/misc/chattr.c b/misc/chattr.c index 730e7b8b..f22d4c90 100644 --- a/misc/chattr.c +++ b/misc/chattr.c @@ -96,6 +96,7 @@ static const struct flags_char flags_array[] = { { EXT3_JOURNAL_DATA_FL, 'j' }, { EXT2_SECRM_FL, 's' }, { EXT2_UNRM_FL, 'u' }, + { EXT2_NOTAIL_FL, 't' }, { 0, 0 } }; |