Whamcloud - gitweb
LU-18066 obdclass: reorder s1 string instead of options string 39/55839/2
authorJames Simmons <jsimmons@infradead.org>
Tue, 23 Jul 2024 14:09:09 +0000 (10:09 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 Jul 2024 15:56:56 +0000 (15:56 +0000)
Testing with client mounts with multiple MGS NIDs exposed a bug
in that mount options could be lost. In this case user_xattr
from our testing. The mistake was moving the s2 string into the
wrong string; options; instead of s1.

Fixes: 415fa27540 ("LU-9325 obdclass: use match_table for server mount options")
Change-Id: I0a5e1511d558e4600a009b7e7820f68d399bcc21
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55839
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Maximilian Dilger <mdilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/obd_mount.c

index a6dbb44..8e6ffc6 100644 (file)
@@ -1664,7 +1664,7 @@ bad_string:
                                         */
                                        len -= strlen(args->from) + 2;
                                        s2 = s1 + len;
-                                       memmove(options, s2, strlen(s2) + 1);
+                                       memmove(s1, s2, strlen(s2) + 1);
                                        opts += len;
                                }
                        }