]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: keep context fs and optlist synchronized
authorKarel Zak <kzak@redhat.com>
Wed, 24 Aug 2022 14:54:10 +0000 (16:54 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Jan 2023 11:58:42 +0000 (12:58 +0100)
commitfaa3d718d73500bd017c90a4be0d408597928e68
treeb560ba093eceb0ced7471d1744869e8ad602bfcf
parent2454f70194d6399791c931fe4d4b42b1cc7c71bd
libmount: keep context fs and optlist synchronized

The new code uses cxt->optlist to maintain mount options, but for backward
compatibility and for some stuff in the library we need to keep context->fs
up to date with the optlist. It seems the best is to to keep it on-demand
and automatic.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c
libmount/src/fs.c
libmount/src/mountP.h
libmount/src/optlist.c