]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: also query log device topology in get_topology
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2024 23:07:47 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:27 +0000 (14:06 -0700)
Also query the log device topology in get_topology, which we'll need
in mkfs in a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/topology.c
libxfs/topology.h

index 706eed022767bbc2f74ca8e37c8b385db28673e0..94adb5be7bdcae7d9487a9d1950eb2401200e614 100644 (file)
@@ -292,4 +292,5 @@ get_topology(
 {
        get_device_topology(&xi->data, &ft->data, force_overwrite);
        get_device_topology(&xi->rt, &ft->rt, force_overwrite);
+       get_device_topology(&xi->log, &ft->log, force_overwrite);
 }
index ba0c8f6696a74d0872dc17d56151acbda1da0717..fa0a23b7738624c1cf898a738345b7173d5bf630 100644 (file)
@@ -20,6 +20,7 @@ struct device_topology {
 struct fs_topology {
        struct device_topology  data;
        struct device_topology  rt;
+       struct device_topology  log;
 };
 
 void