]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: disallow sb UUID write on v5 filesystems
authorEric Sandeen <sandeen@redhat.com>
Sun, 12 Apr 2015 23:33:47 +0000 (09:33 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 12 Apr 2015 23:33:47 +0000 (09:33 +1000)
commit609f6bb20b7972c1a68370faea1dcbcf39912e07
treee965bb9a948f547e8acee0078396313b843f80e5
parentfa8fb25abab9f2579e21ae86fdbc685b329f848d
xfs_db: disallow sb UUID write on v5 filesystems

Do not allow xfs_db (or the xfs_admin frontend) to change the UUID
of a V5 filesystem; this will cause UUID mismatches across the
filesystem, and we currently have no mechanism to update them all.
Changing only the superblock UUID makes all other metadata look
invalid, and xfs_repair reacts by junking everything.

Addresses-Debian-Bug: 782012
Reported-by: F. Stoyan <fstoyan@swapon.de>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/sb.c