Skip to contentSkip to conversation

fs/ntfs3: clarify emitted log message when marking volumes as dirty

PATCH In review Enrico Mioso 2 participants 3 messages Oct 26, 2021 NTFS3 filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/ntfs3: clarify emitted log message when marking volumes as dirty

We are actually marking the volume as dirty. Reflect this in the message.

---
 fs/ntfs3/fsntfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ntfs3/fsntfs.c +1 -1
index abe74dc9ce31..08802d7ca078 100644
@@ -933,7 +933,7 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty)
 
 	switch (dirty) {
 	case NTFS_DIRTY_ERROR:
-		ntfs_notice(sbi->sb, "Mark volume as dirty due to NTFS errors");
+		ntfs_notice(sbi->sb, "Marking volume as dirty due to NTFS errors");
 		sbi->volume.real_dirty = true;
 		fallthrough;
 	case NTFS_DIRTY_DIRTY:
Signature · 1 line
2.33.1
#1 lore raw
Quoted 1 line · Enrico Mioso

We are actually marking the volume as dirty. Reflect this in the message.

Again this should look like below. Maybe send patch series which contains both of your patches. Mark it as v2.

We are actually marking the volume as dirty. Reflect this in the message.

I have not strong opinion about this change so I let Konstantin decide.

Quoted 22 lines
---
 fs/ntfs3/fsntfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ntfs3/fsntfs.c +1 -1
index abe74dc9ce31..08802d7ca078 100644
@@ -933,7 +933,7 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty)
 
 	switch (dirty) {
 	case NTFS_DIRTY_ERROR:
-		ntfs_notice(sbi->sb, "Mark volume as dirty due to NTFS errors");
+		ntfs_notice(sbi->sb, "Marking volume as dirty due to NTFS errors");
 		sbi->volume.real_dirty = true;
 		fallthrough;
 	case NTFS_DIRTY_DIRTY:
Signature · 1 line
2.33.1
#2 lore raw
Quoted 5 lines · Kari Argillander
Quoted 1 line · Enrico Mioso

We are actually marking the volume as dirty. Reflect this in the message.

Again this should look like below. Maybe send patch series which contains both of your patches. Mark it as v2.

And please also cc [email protected]

And to: should be also
Konstantin Komarov <[email protected]>

Quoted 29 lines

We are actually marking the volume as dirty. Reflect this in the message.

I have not strong opinion about this change so I let Konstantin decide.

Quoted 22 lines
---
 fs/ntfs3/fsntfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ntfs3/fsntfs.c +1 -1
index abe74dc9ce31..08802d7ca078 100644
@@ -933,7 +933,7 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty)
 
 	switch (dirty) {
 	case NTFS_DIRTY_ERROR:
-		ntfs_notice(sbi->sb, "Mark volume as dirty due to NTFS errors");
+		ntfs_notice(sbi->sb, "Marking volume as dirty due to NTFS errors");
 		sbi->volume.real_dirty = true;
 		fallthrough;
 	case NTFS_DIRTY_DIRTY:
Signature · 1 line
2.33.1