From eec6600f38c483d91b5c18fca21092b3d46c80cd Mon Sep 17 00:00:00 2001 From: jiangqianrong Date: Wed, 13 May 2026 12:15:32 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=201009-Support-print-volume-name-of-f2fs.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangqianrong --- 1009-Support-print-volume-name-of-f2fs.patch | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/1009-Support-print-volume-name-of-f2fs.patch b/1009-Support-print-volume-name-of-f2fs.patch index 068410fe..0ac9d224 100644 --- a/1009-Support-print-volume-name-of-f2fs.patch +++ b/1009-Support-print-volume-name-of-f2fs.patch @@ -2,19 +2,19 @@ From a0b8b123a43b9639fcfc72896b5d9930ce5abe65 Mon Sep 17 00:00:00 2001 From: y00966934 Date: Wed, 13 May 2026 11:16:38 +0800 Subject: [PATCH] Support print volume name of f2fs - + Signed-off-by: Yang sunan --- lib/blkid/probe.c | 5 +++++ lib/blkid/probe.h | 1 + 2 files changed, 6 insertions(+) - + diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index 6a3bb247..5c4c974f 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -1435,6 +1435,11 @@ static int probe_f2fs(struct blkid_probe *probe, - + bs = (struct f2fs_super_block *)buf; set_uuid(probe->dev, bs->uuid, 0); + if (bs->volume_name[0] != 0) { @@ -24,18 +24,19 @@ index 6a3bb247..5c4c974f 100644 + } return 0; } - + diff --git a/lib/blkid/probe.h b/lib/blkid/probe.h index 063a5b5c..ee9f6723 100644 --- a/lib/blkid/probe.h +++ b/lib/blkid/probe.h @@ -730,6 +730,7 @@ struct btrfs_super_block { } __attribute__ ((__packed__)); - + #define F2FS_MAX_EXTENSION 64 /* # of extension entries */ +#define F2FS_LABEL_SIZE 512 /* # of volume name */ - + struct f2fs_super_block { __u32 magic; /* Magic Number */ --- +-- 2.34.1 + \ No newline at end of file