From: Dave Chinner Date: Wed, 19 Aug 2015 00:31:54 +0000 (+1000) Subject: xfs: log recovery needs to validate against sb_meta_uuid X-Git-Tag: omap-for-v4.3/fixes-rc1~79^2~2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcfbe2c4ef4243cc11a1cd64ee1b4907b6afea06;p=pandora-kernel.git xfs: log recovery needs to validate against sb_meta_uuid Now that sb_uuid can be changed by the user, we cannot use this to validate the metadata blocks being recovered belong to this filesystem. We must check against the sb_meta_uuid as that will remain unchanged. There is a complication in this code - the superblock itself. We can not check the sb_meta_uuid unconditionally, as that may not be set on disk. Hence we must verify the superblock sb_uuid matches between the log record and the in-core superblock. Found by inspection after the previous two problems were found. Signed-off-by: Dave Chinner Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner --- Reading git-diff-tree failed