[Ocfs2-tools-devel] [PATCH] libocfs2: ocfs2_write_super() should update all superblocks

Joel Becker Joel.Becker at oracle.com
Wed Jul 9 01:37:26 PDT 2008


On Wed, Jul 09, 2008 at 04:30:07PM +0800, Tao Ma wrote:
> Looks great. Just one concern.
>
>> @@ -1552,38 +1539,14 @@ skip_cluster_start:
>>  		block_signals(SIG_BLOCK);
>>  		ret = ocfs2_write_super(fs);
> Here, you write the backups twice if the user's option is add  
> backup-support(since we have already written once in  
> update_backup_super). And the old solution will remove backup flag if  
> the backup update fails(see below), but now I am not sure whether it is  
> appropriate.

	Yeah, I decided that writing the backups twice is fine,
certainly better than the complexity of trying to avoid it.
	Sunil and I discussed removing the flag.  I think we want to
keep it - it's a hint to any following program that it should try to
recreate them.  Otherwise we've just disabled the feature.  Plus, if the
backups failed, the old backups are still good, just out of date.  Which
is better than having no backups at all.

Joel
-- 

"I think it would be a good idea."  
        - Mahatma Ghandi, when asked what he thought of Western
          civilization

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