Skip to contentSkip to conversation

udf : fix metadata/mirror address print

PATCH In review Namjae Jeon 2 participants 2 messages Oct 31, 2011 UDF filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udf : fix metadata/mirror address print

I found some bug in Skip-mirror-metadata-FE-loading-when-metadata-FE-is-ok patch So I try to fix metadata/mirror address print.

---
 fs/udf/super.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/udf/super.c +2 -2
index b4921ab..dfe043a 100644
@@ -860,7 +860,7 @@ static int udf_load_metadata_files(struct super_block *sb, int partition)
 
 	/* metadata address */
 	udf_debug("Metadata file location: block = %d part = %d\n",
-		  addr.logicalBlockNum, addr.partitionReferenceNum);
+		  mdata->s_meta_file_loc, map->s_partition_num);
 
 	mdata->s_metadata_fe = udf_find_metadata_inode_efe(sb,
 		mdata->s_meta_file_loc, map->s_partition_num);
@@ -868,7 +868,7 @@ static int udf_load_metadata_files(struct super_block *sb, int partition)
 	if (mdata->s_metadata_fe == NULL) {
 		/* mirror file entry */
 		udf_debug("Mirror metadata file location: block = %d part = %d\n",
-			  addr.logicalBlockNum, addr.partitionReferenceNum);
+			  mdata->s_mirror_file_loc, map->s_partition_num);
 
 		mdata->s_mirror_fe = udf_find_metadata_inode_efe(sb,
 			mdata->s_mirror_file_loc, map->s_partition_num);
Signature · 1 line
1.7.4.4
#1 lore raw
Quoted 2 lines · Namjae Jeon

I found some bug in Skip-mirror-metadata-FE-loading-when-metadata-FE-is-ok patch So I try to fix metadata/mirror address print.

Thanks. I've folded this patch into your previous one.

Honza

Quoted 32 lines
---
 fs/udf/super.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/udf/super.c +2 -2
index b4921ab..dfe043a 100644
@@ -860,7 +860,7 @@ static int udf_load_metadata_files(struct super_block *sb, int partition)
 
 	/* metadata address */
 	udf_debug("Metadata file location: block = %d part = %d\n",
-		  addr.logicalBlockNum, addr.partitionReferenceNum);
+		  mdata->s_meta_file_loc, map->s_partition_num);
 
 	mdata->s_metadata_fe = udf_find_metadata_inode_efe(sb,
 		mdata->s_meta_file_loc, map->s_partition_num);
@@ -868,7 +868,7 @@ static int udf_load_metadata_files(struct super_block *sb, int partition)
 	if (mdata->s_metadata_fe == NULL) {
 		/* mirror file entry */
 		udf_debug("Mirror metadata file location: block = %d part = %d\n",
-			  addr.logicalBlockNum, addr.partitionReferenceNum);
+			  mdata->s_mirror_file_loc, map->s_partition_num);
 
 		mdata->s_mirror_fe = udf_find_metadata_inode_efe(sb,
 			mdata->s_mirror_file_loc, map->s_partition_num);
Signature · 1 line
1.7.4.4
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR