Add extent conversion support to chattr
PATCH RESEND 1/1 Add extent conversion support to chattr
This patch adds new option, +e to chattr. The +e option is used to convert the ext3 format (non extent) file to ext4 (extent) format. This can be used to migrate the ext3 file system to ext4 file system.
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- misc/chattr.1.in | 8 ++---- misc/chattr.c | 58 +++++++++++++++++++++++++++++++++++------------------ 2 files changed, 41 insertions(+), 25 deletions(-)
misc/chattr.1.in +3 -5
@@ -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 +-=[ASacDdIijsTtu]. +The format of a symbolic mode is +-=[ASacDdeIijsTtu]. .PP The operator `+' causes the selected attributes to be added to the existing attributes of the files; `-' causes them to be removed; and
@@ -74,10 +74,8 @@ although it can be displayed by .BR lsattr (1). .PP The 'e' attribute indicates that the file is using extents for mapping -the blocks on disk. It may not be set or reset using -.BR chattr (1), -although it can be displayed by -.BR lsattr (1). +the blocks on disk. It may not be removed using +.BR chattr (1). .PP The 'I' attribute is used by the htree code to indicate that a directory is being indexed using hashed trees. It may not be set or reset using
misc/chattr.c +38 -20
94 lines not on this page · raw message
Signature · 1 line
tg: (8680b4e..) an/chattr3 (depends on: master)
Theodore Tso
AppliedQuoted 4 lines · Aneesh Kumar K.V
This patch adds new option, +e to chattr. The +e option is used to convert the ext3 format (non extent) file to ext4 (extent) format. This can be used to migrate the ext3 file system to ext4 file system.
Thanks, applied.
- Ted