Skip to contentSkip to conversation

fat: Expand a slightly out-of-date comment

PATCH In review Mihir Mehta 3 participants 6 messages Sep 27, 2018 – Oct 2, 2018 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fat: Expand a slightly out-of-date comment

The file namei.c seems to have been renamed to namei_msdos.c, so I decided to update the comment with the correct name, and expand it a bit to tell the reader what to look for.

---
 fs/fat/dir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/fat/dir.c +2 -1
index b833ffe..d954e18 100644
@@ -368,7 +368,8 @@ static int fat_parse_short(struct super_block *sb,
 	}
 
 	memcpy(work, de->name, sizeof(work));
-	/* see namei.c, msdos_format_name */
+	/* For an explanation of the special treatment of 0x05 in
+	   filenames, see msdos_format_name in namei_msdos.c */
 	if (work[0] == 0x05)
 		work[0] = 0xE5;
 
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 12 lines · Mihir Mehta

The file namei.c seems to have been renamed to namei_msdos.c, so I decided to update the comment with the correct name, and expand it a bit to tell the reader what to look for.

---
 fs/fat/dir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/fat/dir.c +0 -0
index b833ffe..d954e18 100644

fs/fat/dir.c static int fat_parse_short(struct super_block *sb, · line 374

Quoted 8 lines
fs/fat/dir.c +2 -1
@@ -368,7 +368,8 @@ static int fat_parse_short(struct super_block *sb,
 	}
 
 	memcpy(work, de->name, sizeof(work));
-	/* see namei.c, msdos_format_name */
+	/* For an explanation of the special treatment of 0x05 in
+	   filenames, see msdos_format_name in namei_msdos.c */
 	if (work[0] == 0x05)
 		work[0] = 0xE5;

Sorry. However, could you use

	/*
         *
         */

style comment? Otherwise, looks good.

Thanks.

Signature · 1 line
OGAWA Hirofumi <[email protected]>
#2 lore raw

PATCH 1/1 fat: Expand a slightly out-of-date comment

The file namei.c seems to have been renamed to namei_msdos.c, so I decided to update the comment with the correct name, and expand it a bit to tell the reader what to look for.

---
 fs/fat/dir.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/fat/dir.c +3 -1
index 7f5f369..f4db13f 100644
@@ -369,7 +369,9 @@ static int fat_parse_short(struct super_block *sb,
 	}
 
 	memcpy(work, de->name, sizeof(work));
-	/* see namei.c, msdos_format_name */
+	/* For an explanation of the special treatment of 0x05 in
+	 * filenames, see msdos_format_name in namei_msdos.c 
+	 */
 	if (work[0] == 0x05)
 		work[0] = 0xE5;
 
Signature · 1 line
2.7.4
maintainer Acked-by on v1 1/1
#3 lore raw
Quoted 12 lines · Mihir Mehta

The file namei.c seems to have been renamed to namei_msdos.c, so I decided to update the comment with the correct name, and expand it a bit to tell the reader what to look for.

---
 fs/fat/dir.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/fat/dir.c +0 -0
index 7f5f369..f4db13f 100644

fs/fat/dir.c static int fat_parse_short(struct super_block *sb, · line 376

Quoted 9 lines
fs/fat/dir.c +3 -1
@@ -369,7 +369,9 @@ static int fat_parse_short(struct super_block *sb,
 	}
 
 	memcpy(work, de->name, sizeof(work));
-	/* see namei.c, msdos_format_name */
+	/* For an explanation of the special treatment of 0x05 in
+	 * filenames, see msdos_format_name in namei_msdos.c 
+	 */
 	if (work[0] == 0x05)
 		work[0] = 0xE5;

Thanks.

Signature · 1 line
OGAWA Hirofumi <[email protected]>
#4 lore raw
In reply to Mihir Mehta
Quoted 3 lines · On Fri, 28 Sep 2018 14:49:47 -0500 Mihir Mehta <[email protected]> wrote:

The file namei.c seems to have been renamed to namei_msdos.c, so I decided to update the comment with the correct name, and expand it a bit to tell the reader what to look for.

Please send us a Signed-off-by: for this patch, as per Documentation/process/submitting-patches.rst, section 11.

Thanks.

#5 lore raw

PATCH 1/1 fat: Expand a slightly out-of-date comment

The file namei.c seems to have been renamed to namei_msdos.c, so I decided to update the comment with the correct name, and expand it a bit to tell the reader what to look for.

---
 fs/fat/dir.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/fat/dir.c +3 -1
index 7f5f369..ce5f958 100644
@@ -369,7 +369,9 @@ static int fat_parse_short(struct super_block *sb,
 	}
 
 	memcpy(work, de->name, sizeof(work));
-	/* see namei.c, msdos_format_name */
+	/* For an explanation of the special treatment of 0x05 in
+	 * filenames, see msdos_format_name in namei_msdos.c
+	 */
 	if (work[0] == 0x05)
 		work[0] = 0xE5;
 
Signature · 1 line
2.7.4