Pls ignore this set as I am including these patches along with other related changes.
Thanks, Anand On 03/22/2018 09:01 PM, Anand Jain wrote:
v2->v1: progs: update change log Adds kernel check if there is a mismatch in the FSID between primary and copy SB The kernel patch here checks if all the SB copies are of the same fsid. The btrfs-progs patch zeros SB if found beyond blockcount. mkfs.btrfs -b <blockcount> ** CAVEAT ** On the systems with only the below kernel patch but without the btrfs-progs patch below, it shall return the btrfs scan error as shown in the example below. mkfs.btrfs -fq /dev/sdc mkfs.btrfs -fq -b1G /dev/sdc ERROR: device scan failed on '/dev/sdc': Invalid argument The above error says, mkfs is fine but failed to register/scan the device into the kernel. As the kernel now reports an error if there is inconsistency in the SB fsid. To overcome this error user can apply the btrfs-progs patch OR use dd it zero the stale SB manually. Anand Jain (1): btrfs: check if the fsid in the primary sb and copy sb are same fs/btrfs/volumes.c | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) btrfs-progs: wipe stale sb copy beyond -b size utils.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
-- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html