projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e51c8d
)
fs: fat: use constant DELETED_FLAG
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Thu, 19 Nov 2020 05:47:35 +0000
(06:47 +0100)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Thu, 10 Dec 2020 08:14:59 +0000
(09:14 +0100)
When deleting a directory entry 0xe5 is written to name[0].
We have a constant for this value and should use it consistently.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat_write.c
patch
|
blob
|
history
diff --git
a/fs/fat/fat_write.c
b/fs/fat/fat_write.c
index 56ea28553b30751ffbf08b73cff50b3c58c39dd0..c403d7d5c6b4ecd68b29989a588ac43fd110f13e 100644
(file)
--- a/
fs/fat/fat_write.c
+++ b/
fs/fat/fat_write.c
@@
-1464,7
+1464,7
@@
static int delete_dentry(fat_itr *itr)
* - find and mark the "new" first invalid entry as name[0]=0x00
*/
memset(dentptr, 0, sizeof(*dentptr));
- dentptr->name[0] =
0xe5
;
+ dentptr->name[0] =
DELETED_FLAG
;
if (flush_dir(itr)) {
printf("error: writing directory entry\n");