Re: [PATCH 03/16] xfs: rework attr2 feature and mount options

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

 



> +	/*
> +	 * Now that we've recovered any pending superblock feature bit
> +	 * additions, we can finish setting up the attr2 behaviour for the
> +	 * mount. If no attr2 mount options were specified, the we use the
> +	 * behaviour specified by the superblock feature bit.
> +	 */
> +	if (!(mp->m_flags & (XFS_MOUNT_ATTR2|XFS_MOUNT_NOATTR2)) &&

Missing spaces around the |.

> +	if ((mp->m_flags & (XFS_MOUNT_ATTR2|XFS_MOUNT_NOATTR2)) ==
> +			  (XFS_MOUNT_ATTR2|XFS_MOUNT_NOATTR2)) {
> +		xfs_warn(mp, "attr2 and noattr2 cannot both be specified.");
> +		return -EINVAL;
> +	}

Same here.

> +
> +
>  	if ((mp->m_flags & XFS_MOUNT_NOALIGN) &&

Double empty line.


More importantly I wonder if we can simplify this further:

 - completely ignore the attr2 option (we already warn about it being
   deprecated) and remove XFS_MOUNT_ATTR2
 - just check for XFS_MOUNT_NOATTR2 do disable automatically switching
   to v2 attrs

And maybe as a service to the user warn when the noattr2 option is
specified on a file system that already has v2 attrs.



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux