If the log is on the data device (i.e. internal) then it should
match the sector size the data device is using. If they don't match,
then one or the other doesn't have atomic sector writes and we could
have crash consistency problems. Not to mention that it's simply
wrong to have two different sector sizes for the same device.
Hence enforce the requirement that an internal log device always has
the same sector size as the data device.
Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
{ .index = L_INTERNAL,
.conflicts = { L_FILE,
L_DEV,
+ L_SECTLOG,
+ L_SECTSIZE,
LAST_CONFLICT },
.minval = 0,
.maxval = 1,
},
{ .index = L_SECTLOG,
.conflicts = { L_SECTSIZE,
+ L_INTERNAL,
LAST_CONFLICT },
.minval = XFS_MIN_SECTORSIZE_LOG,
.maxval = XFS_MAX_SECTORSIZE_LOG,
},
{ .index = L_SECTSIZE,
.conflicts = { L_SECTLOG,
+ L_INTERNAL,
LAST_CONFLICT },
.convert = true,
.is_power_2 = true,