[Ocfs2-tools-devel] [PATCH 15/30] fsck.ocfs2: prompt before truncating an invalid dir index
Joel Becker
Joel.Becker at oracle.com
Thu Apr 29 14:59:33 PDT 2010
On Wed, Apr 28, 2010 at 06:26:20PM -0700, Mark Fasheh wrote:
> diff --git a/fsck.ocfs2/pass2.c b/fsck.ocfs2/pass2.c
> index 58efcd4..b999761 100644
> --- a/fsck.ocfs2/pass2.c
> +++ b/fsck.ocfs2/pass2.c
> @@ -874,7 +874,11 @@ next:
> if ((!ocfs2_supports_indexed_dirs(OCFS2_RAW_SB(dd->fs->fs_super)))&&
> di->i_dyn_features & OCFS2_INDEXED_DIR_FL ) {
> /* ignore the return value */
> - ocfs2_dx_dir_truncate(dd->fs, dbe->e_ino);
> + if (prompt(dd->ost, PY, PR_IV_DX_TREE, "A directory index was "
> + "found on inode %"PRIu64" but the indexing feature "
> + "is not set on the fs. Truncate the invalid index?",
"but this filesystem does not support directory indexes."
Sobby with that text change.
Joel
--
Life's Little Instruction Book #20
"Be forgiving of yourself and others."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-tools-devel
mailing list