Re: [PATCH 21/48] xfs: implement extended feature masks

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

 



On Thu, Jul 25, 2013 at 05:08:14PM -0500, Ben Myers wrote:
> On Fri, Jun 07, 2013 at 10:25:44AM +1000, Dave Chinner wrote:
> > From: Dave Chinner <dchinner@xxxxxxxxxx>
> > 
> > The version 5 superblock has extended feature masks for compatible,
> > incompatible and read-only compatible feature sets. Implement the
> > masking and mount-time checking for these feature masks.
> > 
> > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
> 
> corresponds to commit e721f504cf46a
> 
> > @@ -214,12 +242,6 @@ xfs_mount_validate_sb(
> >  		return XFS_ERROR(ENOSYS);
> >  	}
> >  
> > -
> > -	if (check_inprogress && sbp->sb_inprogress) {
> > -		xfs_warn(mp, "Offline file system operation in progress!");
> > -		return XFS_ERROR(EFSCORRUPTED);
> > -	}
> > -
> 
> Why did this need to be removed?

Think about it for a minute - it's not valid in userspace. i.e. it's
a kernel-side check to determine if userspace is modifying the
filesystem at the current time.

e.g. mkfs.xfs sets it in the primary superblock to prevent the
kernel mounting the filesystem before mkfs completes. If we leave it
in the userspace code, then mkfs will abort when it rereads the
superblock from disk because it's detected that mkfs is running....

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux