On Sep 12, 2008 14:34 +0530, Aneesh Kumar wrote: > - _("Usage: %s [-RVf] [-+=AacDdijsSu] [-v version] files...\n"), > + _("Usage: %s [-RVf] [-+=AacDdijsSue] [-v version] files...\n"), Please keep options in alphabetical order. > @@ -105,6 +105,7 @@ static const struct flags_char flags_array[] = { > { EXT2_UNRM_FL, 'u' }, > { EXT2_NOTAIL_FL, 't' }, > { EXT2_TOPDIR_FL, 'T' }, > + { EXT4_EXTENTS_FL, 'e'}, I'd also prefer to keep these in alphabetical order, which they almost are. > @@ -199,7 +201,22 @@ static int change_attributes(const char * name) > if (set) { > + if (extent_file && !(sf & EXT4_EXTENTS_FL)) { > + if (!silent) > + com_err(program_name, 0, > + _("Clearing extent flag not supported on %s"), > + name); > + return -1; > + } Why not just try to set this flag and let the kernel decide what is possible? Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html