[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: getting ext3 on suse-7.3? (long post)



On Nov 03, 2001  12:55 -0800, Andrew Morton wrote:
> dep wrote:
> > 
> > tune2fs 1.24a (02-Sep-2001)
> > Creating journal inode:
> > tune2fs: Permission denied
> >         while trying to create journal file
> 
> You need to run 
> 
> 	chattr -i /.journal
> 
> 
> Ted, could we please change that error message?  
> 
> 
> --- tune2fs.c.orig	Sat Nov  3 12:53:56 2001
> +++ tune2fs.c	Sat Nov  3 12:54:59 2001
> @@ -321,7 +321,8 @@
>  		if (retval) {
>  			printf("\n");
>  			com_err(program_name, retval,
> -				_("\n\twhile trying to create journal file"));
> +				_("\n\twhile trying to create journal file."
> +				  "(try chattr -s on the .journal file)"));
>  			exit(1);
>  		} else
>  			printf(_("done\n"));

This won't really help (still need to delete the journal as well).  What I
propose is to check the .journal file, and if it has a journal superblock
at the beginning, we "take over" this inode as the journal, on the reasonable
assumption that this is what the user wants to do.

There have been too many reports of people having problems trying to
re-create their journal (when has_journal is missing from the superblock)
because the .journal file already exists.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]