Skip to contentSkip to conversation

xfsprogs: metadump warns about dirty journal

PATCH In review Jan Tulak 4 participants 13 messages Apr 13, 2017 – Jun 15, 2017

lore
Share & tools
lore

Jan Tulak

author
#0 lore raw

v2 cover xfsprogs: metadump warns about dirty journal

Hi guys

Per the discussion in the previous patches, I'm sending this updated version. It does nothing with mdrestore, only adds a bit more elaborate warning on the dump side and adds the same info also to the man page for metadump.

Hopefully, this is ok for everyone and we can continue the discussion if/what to do with mdrestore in the old thread.

This set is based on xfsprogs: 07a3e79 for-next branch, git tree is https://github.com/jtulak/xfsprogs-dev/tree/metadump

Cheers,
Jan

Jan Tulak (2):
metadump: warn about corruption if log is dirty
xfsprogs: update man for metadump about dirty log/obfuscation issue

 db/metadump.c           | 4 +++-
 man/man8/xfs_metadump.8 | 6 ++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
Signature · 1 line
2.1.4
author
#1 lore raw

PATCH v2 1/2 metadump: warn about corruption if log is dirty

Add a warning about possible corruption when exporting a dirty log, as the log content does not agree with obfuscated metadata.

---
Change: More elaborate warning message.

---
 db/metadump.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
db/metadump.c +3 -1
index 66952f6..2dd8593 100644
@@ -2726,7 +2726,9 @@ copy_log(void)
 		/* keep the dirty log */
 		if (obfuscate)
 			print_warning(
-_("Filesystem log is dirty; image will contain unobfuscated metadata in log."));
+_("Warning: log recovery of an obfuscated metadata image can leak "
+"unobfuscated metadata and/or cause image corruption. Please mount "
+"the source filesystem to clean the log or disable obfuscation, if possible."));
 		break;
 	case -1:
 		/* log detection error */
Signature · 1 line
2.1.4
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH 1/2] metadump: warn about corruption if log is dirty

Quoted 15 lines · Jan Tulak

Add a warning about possible corruption when exporting a dirty log, as the log content does not agree with obfuscated metadata.

---
Change: More elaborate warning message.

---
 db/metadump.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
db/metadump.c +0 -0
index 66952f6..2dd8593 100644

db/metadump.c copy_log(void) · line 2732

Quoted 8 lines
db/metadump.c +3 -1
@@ -2726,7 +2726,9 @@ copy_log(void)
 		/* keep the dirty log */
 		if (obfuscate)
 			print_warning(
-_("Filesystem log is dirty; image will contain unobfuscated metadata in log."));
+_("Warning: log recovery of an obfuscated metadata image can leak "
+"unobfuscated metadata and/or cause image corruption. Please mount "
+"the source filesystem to clean the log or disable obfuscation, if possible."));
 		break;

Thanks Jan, just one very minor nit having read this again... could we put the "if possible" closer to the part about mounting the source image? Otherwise it reads to me that it might not be technically possible to disable obfuscation, which is not the case (though the user may not want to do that as a matter of policy). For example:

"... Please mount the source filesystem to clean the log, if possible, or disable obfuscation."

With that tweak:

Quoted 9 lines
db/metadump.c +0 -0
 	case -1:
 		/* log detection error */
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

Re: [PATCH 1/2] metadump: warn about corruption if log is dirty

Quoted 31 lines · Brian Foster
Quoted 15 lines · Jan Tulak

Add a warning about possible corruption when exporting a dirty log, as the log content does not agree with obfuscated metadata.

---
Change: More elaborate warning message.

---
 db/metadump.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
db/metadump.c +0 -0
index 66952f6..2dd8593 100644

db/metadump.c copy_log(void) · line 2732

Quoted 8 lines
db/metadump.c +3 -1
@@ -2726,7 +2726,9 @@ copy_log(void)
 		/* keep the dirty log */
 		if (obfuscate)
 			print_warning(
-_("Filesystem log is dirty; image will contain unobfuscated metadata in log."));
+_("Warning: log recovery of an obfuscated metadata image can leak "
+"unobfuscated metadata and/or cause image corruption. Please mount "
+"the source filesystem to clean the log or disable obfuscation, if possible."));
 		break;

Thanks Jan, just one very minor nit having read this again... could we put the "if possible" closer to the part about mounting the source image? Otherwise it reads to me that it might not be technically possible to disable obfuscation, which is not the case (though the user may not want to do that as a matter of policy). For example:

Quoted 2 lines

"... Please mount the source filesystem to clean the log, if possible, or disable obfuscation."

Hoovering up old patches ...

To me, Jan's original is ok. "If possible" applying to both replay and disabling obfuscation seems reasonable, because "policy" may make it impossible ;) So I hate to direct the user to disable obfuscation.

"If possible, please mount the filesystem to clean the log, or disable obfuscation."

Is that OK? Gives the user options, and wiggle room..

-Eric

Quoted 18 lines

With that tweak:

Quoted 9 lines
db/metadump.c +0 -0
 	case -1:
 		/* log detection error */
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Re: [PATCH 1/2] metadump: warn about corruption if log is dirty

Quoted 37 lines · Eric Sandeen
Quoted 31 lines · Brian Foster
Quoted 15 lines · Jan Tulak

Add a warning about possible corruption when exporting a dirty log, as the log content does not agree with obfuscated metadata.

---
Change: More elaborate warning message.

---
 db/metadump.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
db/metadump.c +0 -0
index 66952f6..2dd8593 100644

db/metadump.c copy_log(void) · line 2732

Quoted 8 lines
db/metadump.c +3 -1
@@ -2726,7 +2726,9 @@ copy_log(void)
 		/* keep the dirty log */
 		if (obfuscate)
 			print_warning(
-_("Filesystem log is dirty; image will contain unobfuscated metadata in log."));
+_("Warning: log recovery of an obfuscated metadata image can leak "
+"unobfuscated metadata and/or cause image corruption. Please mount "
+"the source filesystem to clean the log or disable obfuscation, if possible."));
 		break;

Thanks Jan, just one very minor nit having read this again... could we put the "if possible" closer to the part about mounting the source image? Otherwise it reads to me that it might not be technically possible to disable obfuscation, which is not the case (though the user may not want to do that as a matter of policy). For example:

Quoted 2 lines

"... Please mount the source filesystem to clean the log, if possible, or disable obfuscation."

Hoovering up old patches ...

Quoted 9 lines

To me, Jan's original is ok. "If possible" applying to both replay and disabling obfuscation seems reasonable, because "policy" may make it impossible ;) So I hate to direct the user to disable obfuscation.

"If possible, please mount the filesystem to clean the log, or disable obfuscation."

Is that OK? Gives the user options, and wiggle room..

Sounds good to me, thanks!

Brian

Quoted 24 lines

-Eric

Quoted 9 lines

With that tweak:

Quoted 5 lines
db/metadump.c +0 -0
 	case -1:
 		/* log detection error */
Signature · 1 line
2.1.4
Quoted 9 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#5 lore raw

PATCH v2 2/2 xfsprogs: update man for metadump about dirty log/obfuscation issue

In reply to Jan Tulak

This is something that should be documented, as it is not obvious to everyone.

---
 man/man8/xfs_metadump.8 | 6 ++++++
 1 file changed, 6 insertions(+)
man/man8/xfs_metadump.8 +6 -0
index 3731d6a..1b40fb8 100644
@@ -59,6 +59,12 @@ options where
 are not obfuscated. Names between 5 and 8 characters in length inclusively
 are partially obfuscated.
 .PP
+Log recovery of an obfuscated metadata image can leak
+unobfuscated metadata and/or cause image corruption. Please mount
+the source filesystem to clean the log or disable obfuscation, if possible.
+If you have to obfuscate an image with a dirty log, tell about it to whoever
+you are sending the image to.
+.PP
 .B xfs_metadump
 should not be used for any purposes other than for debugging and reporting
 filesystem problems. The most common usage scenario for this tool is when
Signature · 1 line
2.1.4
#6 lore raw

Re: [PATCH 2/2] xfsprogs: update man for metadump about dirty log/obfuscation issue

Quoted 13 lines · Jan Tulak

This is something that should be documented, as it is not obvious to everyone.

---
 man/man8/xfs_metadump.8 | 6 ++++++
 1 file changed, 6 insertions(+)
man/man8/xfs_metadump.8 +0 -0
index 3731d6a..1b40fb8 100644

man/man8/xfs_metadump.8 options where · line 67

Quoted 9 lines
man/man8/xfs_metadump.8 +6 -0
@@ -59,6 +59,12 @@ options where
 are not obfuscated. Names between 5 and 8 characters in length inclusively
 are partially obfuscated.
 .PP
+Log recovery of an obfuscated metadata image can leak
+unobfuscated metadata and/or cause image corruption. Please mount
+the source filesystem to clean the log or disable obfuscation, if possible.
+If you have to obfuscate an image with a dirty log, tell about it to whoever
+you are sending the image to.
+.PP

We might want the man page content to be a bit more descriptive than what xfs_metadump actually emits for a warning. For example:

"xfs_metadump does not obfuscate data in the filesystem log. Log recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption. It is recommended to disable obfuscation for filesystems that must be captured with a dirty log."

... but that's just my .02. Feel free to reword that and solicit more feedback from others too. Another thought here could be to intimate that if an obfuscated+dirty log metadump image is truly required, it is the user responsibility to verify that the resulting image has not been corrupted by the metadump process and does not contain sensitive metadata (as opposed to telling the user to simply tell the recipient of the image about it).

Brian

Quoted 10 lines
man/man8/xfs_metadump.8 +0 -0
 .B xfs_metadump
 should not be used for any purposes other than for debugging and reporting
 filesystem problems. The most common usage scenario for this tool is when
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#7 lore raw

Re: [PATCH 2/2] xfsprogs: update man for metadump about dirty log/obfuscation issue

Quoted 33 lines · Brian Foster
Quoted 13 lines · Jan Tulak

This is something that should be documented, as it is not obvious to everyone.

---
 man/man8/xfs_metadump.8 | 6 ++++++
 1 file changed, 6 insertions(+)
man/man8/xfs_metadump.8 +0 -0
index 3731d6a..1b40fb8 100644

man/man8/xfs_metadump.8 options where · line 67

Quoted 9 lines
man/man8/xfs_metadump.8 +6 -0
@@ -59,6 +59,12 @@ options where
 are not obfuscated. Names between 5 and 8 characters in length inclusively
 are partially obfuscated.
 .PP
+Log recovery of an obfuscated metadata image can leak
+unobfuscated metadata and/or cause image corruption. Please mount
+the source filesystem to clean the log or disable obfuscation, if possible.
+If you have to obfuscate an image with a dirty log, tell about it to whoever
+you are sending the image to.
+.PP

We might want the man page content to be a bit more descriptive than what xfs_metadump actually emits for a warning. For example:

"xfs_metadump does not obfuscate data in the filesystem log. Log recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption. It is recommended to disable obfuscation for filesystems that must be captured with a dirty log."

Quoted 8 lines

... but that's just my .02. Feel free to reword that and solicit more feedback from others too. Another thought here could be to intimate that if an obfuscated+dirty log metadump image is truly required, it is the user responsibility to verify that the resulting image has not been corrupted by the metadump process and does not contain sensitive metadata (as opposed to telling the user to simply tell the recipient of the image about it).

Sounds reasonable, so how about these two paragraphs?

Quoted 5 lines

"xfs_metadump does not obfuscate data in the filesystem log. Log recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption. It is recommended to disable obfuscation for filesystems that must be captured with a dirty log.

If it is necessary to use obfuscation for any reason and the source fileystem can't be mounted to clean the log, the resulting image should be tested for any corruption caused by metadump process and any sensitive information in the log and the recipient of the image informed about the result."

Cheers,
Jan

Signature · 2 lines
Jan Tulak
[email protected] / [email protected]
#8 lore raw

Re: [PATCH 2/2] xfsprogs: update man for metadump about dirty log/obfuscation issue

Quoted 51 lines · Jan Tulak
Quoted 33 lines · Brian Foster
Quoted 13 lines · Jan Tulak

This is something that should be documented, as it is not obvious to everyone.

---
 man/man8/xfs_metadump.8 | 6 ++++++
 1 file changed, 6 insertions(+)
man/man8/xfs_metadump.8 +0 -0
index 3731d6a..1b40fb8 100644

man/man8/xfs_metadump.8 options where · line 67

Quoted 9 lines
man/man8/xfs_metadump.8 +6 -0
@@ -59,6 +59,12 @@ options where
 are not obfuscated. Names between 5 and 8 characters in length inclusively
 are partially obfuscated.
 .PP
+Log recovery of an obfuscated metadata image can leak
+unobfuscated metadata and/or cause image corruption. Please mount
+the source filesystem to clean the log or disable obfuscation, if possible.
+If you have to obfuscate an image with a dirty log, tell about it to whoever
+you are sending the image to.
+.PP

We might want the man page content to be a bit more descriptive than what xfs_metadump actually emits for a warning. For example:

"xfs_metadump does not obfuscate data in the filesystem log. Log recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption. It is recommended to disable obfuscation for filesystems that must be captured with a dirty log."

Quoted 8 lines

... but that's just my .02. Feel free to reword that and solicit more feedback from others too. Another thought here could be to intimate that if an obfuscated+dirty log metadump image is truly required, it is the user responsibility to verify that the resulting image has not been corrupted by the metadump process and does not contain sensitive metadata (as opposed to telling the user to simply tell the recipient of the image about it).

Sounds reasonable, so how about these two paragraphs?

Quoted 5 lines

"xfs_metadump does not obfuscate data in the filesystem log. Log recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption. It is recommended to disable obfuscation for filesystems that must be captured with a dirty log.

Quoted 5 lines

If it is necessary to use obfuscation for any reason and the source fileystem can't be mounted to clean the log, the resulting image should be tested for any corruption caused by metadump process and any sensitive information in the log and the recipient of the image informed about the result."

You might want to give Eric/Darrick some time to provide feedback before sending out a new version, but otherwise that works for me. Thanks!

Brian

Quoted 10 lines

Cheers,
Jan

Signature · 6 lines
Jan Tulak
[email protected] / [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

Re: [PATCH 2/2] xfsprogs: update man for metadump about dirty log/obfuscation issue

In reply to Jan Tulak
Quoted 43 lines · Jan Tulak
Quoted 33 lines · Brian Foster
Quoted 13 lines · Jan Tulak

This is something that should be documented, as it is not obvious to everyone.

---
 man/man8/xfs_metadump.8 | 6 ++++++
 1 file changed, 6 insertions(+)
man/man8/xfs_metadump.8 +0 -0
index 3731d6a..1b40fb8 100644

man/man8/xfs_metadump.8 options where · line 67

Quoted 9 lines
man/man8/xfs_metadump.8 +6 -0
@@ -59,6 +59,12 @@ options where
 are not obfuscated. Names between 5 and 8 characters in length inclusively
 are partially obfuscated.
 .PP
+Log recovery of an obfuscated metadata image can leak
+unobfuscated metadata and/or cause image corruption. Please mount
+the source filesystem to clean the log or disable obfuscation, if possible.
+If you have to obfuscate an image with a dirty log, tell about it to whoever
+you are sending the image to.
+.PP

We might want the man page content to be a bit more descriptive than what xfs_metadump actually emits for a warning. For example:

"xfs_metadump does not obfuscate data in the filesystem log. Log recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption. It is recommended to disable obfuscation for filesystems that must be captured with a dirty log."

Quoted 8 lines

... but that's just my .02. Feel free to reword that and solicit more feedback from others too. Another thought here could be to intimate that if an obfuscated+dirty log metadump image is truly required, it is the user responsibility to verify that the resulting image has not been corrupted by the metadump process and does not contain sensitive metadata (as opposed to telling the user to simply tell the recipient of the image about it).

Quoted 3 lines

Sounds reasonable, so how about these two paragraphs?

Quoted 1 line

"xfs_metadump does not obfuscate data

metadata

Quoted 3 lines
Quoted 3 lines

in the filesystem log. Log
recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption.

I would add "in the restored image." so that it does not sound like damage to the original filesystem could result.

Quoted 5 lines

It is recommended to

Quoted 2 lines

disable obfuscation for filesystems that must be captured with a dirty log.

If it is necessary to use obfuscation for any reason

drop "for any reason" - just makes this long text longer...

Quoted 4 lines

and the source fileystem
can't be mounted to clean the log, the resulting image should be tested for any corruption caused by metadump process and any sensitive information in the log and the recipient of the image informed about the result."

The end-user running metadump may not have the expertise to "test the resulting image for any corruption ..." - they're probably just following some support person's instructions to "run this command..." How about this:

---

xfs_metadump cannot obfuscate metadata in the filesystem log. Log recovery of an obfuscated metadump image may expose clear-text metadata and/or cause filesystem corruption in the restored image. It is recommended that the source filesystem be mounted and unmounted first if possible, to produce a metadump with a clean log.

If a metadump must be produced from a filesystem with a dirty log, it is recommended that obfuscation be turned off with -o option, if metadata such as filenames is not considered sensitive. If obfuscation is required on a metadump with a dirty log, please inform the recipient of the metadump image about this situation.
---

-Eric

#10 lore raw

Re: [PATCH 2/2] xfsprogs: update man for metadump about dirty log/obfuscation issue

Quoted 65 lines · Eric Sandeen
Quoted 43 lines · Jan Tulak
Quoted 33 lines · Brian Foster
Quoted 13 lines · Jan Tulak

This is something that should be documented, as it is not obvious to everyone.

---
 man/man8/xfs_metadump.8 | 6 ++++++
 1 file changed, 6 insertions(+)
man/man8/xfs_metadump.8 +0 -0
index 3731d6a..1b40fb8 100644

man/man8/xfs_metadump.8 options where · line 67

Quoted 9 lines
man/man8/xfs_metadump.8 +6 -0
@@ -59,6 +59,12 @@ options where
 are not obfuscated. Names between 5 and 8 characters in length inclusively
 are partially obfuscated.
 .PP
+Log recovery of an obfuscated metadata image can leak
+unobfuscated metadata and/or cause image corruption. Please mount
+the source filesystem to clean the log or disable obfuscation, if possible.
+If you have to obfuscate an image with a dirty log, tell about it to whoever
+you are sending the image to.
+.PP

We might want the man page content to be a bit more descriptive than what xfs_metadump actually emits for a warning. For example:

"xfs_metadump does not obfuscate data in the filesystem log. Log recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption. It is recommended to disable obfuscation for filesystems that must be captured with a dirty log."

Quoted 8 lines

... but that's just my .02. Feel free to reword that and solicit more feedback from others too. Another thought here could be to intimate that if an obfuscated+dirty log metadump image is truly required, it is the user responsibility to verify that the resulting image has not been corrupted by the metadump process and does not contain sensitive metadata (as opposed to telling the user to simply tell the recipient of the image about it).

Quoted 3 lines

Sounds reasonable, so how about these two paragraphs?

Quoted 1 line

"xfs_metadump does not obfuscate data

metadata

Quoted 3 lines
Quoted 3 lines

in the filesystem log. Log
recovery of an obfuscated metadump image may expose unobfuscated metadata and/or cause filesystem corruption.

I would add "in the restored image." so that it does not sound like damage to the original filesystem could result.

Quoted 5 lines

It is recommended to

Quoted 2 lines

disable obfuscation for filesystems that must be captured with a dirty log.

If it is necessary to use obfuscation for any reason

drop "for any reason" - just makes this long text longer...

Quoted 8 lines
Quoted 4 lines

and the source fileystem
can't be mounted to clean the log, the resulting image should be tested for any corruption caused by metadump process and any sensitive information in the log and the recipient of the image informed about the result."

The end-user running metadump may not have the expertise to "test the resulting image for any corruption ..." - they're probably just following some support person's instructions to "run this command..." How about this:

(Or they're just running some crazy hoover-up-all-the-state script that support gave them. ;))

Quoted 7 lines

---

xfs_metadump cannot obfuscate metadata in the filesystem log. Log recovery of an obfuscated metadump image may expose clear-text metadata and/or cause filesystem corruption in the restored image. It is recommended that the source filesystem be mounted and unmounted first if possible, to produce a metadump with a clean log.

"It is recommended that the source filesystem first be mounted and unmounted, if possible, to ensure that the log is clean. That way, all metadata can be obfuscated correctly and the metadump will capture a clean log."

...because mounting and unmounting itself does not produce metadumps. :)

Quoted 5 lines

If a metadump must be produced from a filesystem with a dirty log, it is recommended that obfuscation be turned off with -o option, if metadata such as filenames is not considered sensitive. If obfuscation is required on a metadump with a dirty log, please inform the recipient of the metadump image about this situation.

Otherwise seems fine to me.

--D

Quoted 7 lines

---

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw

Re: [PATCH 2/2] xfsprogs: update man for metadump about dirty log/obfuscation issue

Quoted 10 lines · Darrick J. Wong
Quoted 7 lines · Eric Sandeen

---

xfs_metadump cannot obfuscate metadata in the filesystem log. Log recovery of an obfuscated metadump image may expose clear-text metadata and/or cause filesystem corruption in the restored image. It is recommended that the source filesystem be mounted and unmounted first if possible, to produce a metadump with a clean log.

Quoted 6 lines

"It is recommended that the source filesystem first be mounted and unmounted, if possible, to ensure that the log is clean. That way, all metadata can be obfuscated correctly and the metadump will capture a clean log."

...because mounting and unmounting itself does not produce metadumps. :)

That was the "first" bit, but "That way" is a bit colloquial IMHO. <full_pedant_mode>

How about:

"It is recommended that the source filesystem first be mounted and unmounted, if possible, to ensure that the log is clean. After that operation, all metadata will be obfuscated correctly and xfs_metadump will capture a clean log."

-Eric

Quoted 18 lines
Quoted 5 lines

If a metadump must be produced from a filesystem with a dirty log, it is recommended that obfuscation be turned off with -o option, if metadata such as filenames is not considered sensitive. If obfuscation is required on a metadump with a dirty log, please inform the recipient of the metadump image about this situation.

Otherwise seems fine to me.

--D

Quoted 7 lines

---

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#12 lore raw

Re: [PATCH 2/2] xfsprogs: update man for metadump about dirty log/obfuscation issue

Quoted 21 lines · Eric Sandeen
Quoted 10 lines · Darrick J. Wong
Quoted 7 lines · Eric Sandeen

---

xfs_metadump cannot obfuscate metadata in the filesystem log. Log recovery of an obfuscated metadump image may expose clear-text metadata and/or cause filesystem corruption in the restored image. It is recommended that the source filesystem be mounted and unmounted first if possible, to produce a metadump with a clean log.

Quoted 6 lines

"It is recommended that the source filesystem first be mounted and unmounted, if possible, to ensure that the log is clean. That way, all metadata can be obfuscated correctly and the metadump will capture a clean log."

...because mounting and unmounting itself does not produce metadumps. :)

That was the "first" bit, but "That way" is a bit colloquial IMHO. <full_pedant_mode>

Quoted 6 lines

How about:

"It is recommended that the source filesystem first be mounted and unmounted, if possible, to ensure that the log is clean. After that operation, all metadata will be obfuscated correctly and xfs_metadump will capture a clean log."

"A subsequent invocation of xfs_metadump will capture a clean log and obfuscate all metadata correctly."

More bikeshedding! Yay! :)

--D

Quoted 26 lines

-Eric

Quoted 6 lines
Quoted 5 lines

If a metadump must be produced from a filesystem with a dirty log, it is recommended that obfuscation be turned off with -o option, if metadata such as filenames is not considered sensitive. If obfuscation is required on a metadump with a dirty log, please inform the recipient of the metadump image about this situation.

Quoted 12 lines

Otherwise seems fine to me.

--D

Quoted 7 lines

---

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html