debugfs: with ls -l, include space between size and date
PATCH 1/1 debugfs: with ls -l, include space between size and date
From: Eric Biggers <[email protected]>
Before:
11 40700 (2) 0 0 1228812-Feb-2017 12:51 lost+found
After:
11 40700 (2) 0 0 12288 12-Feb-2017 12:51 lost+found
Fixes 68a1de3df340 ("debugfs: pretty print encrypted filenames in the ls command")
Signed-off-by Eric Biggers <[email protected]>
--- debugfs/ls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
debugfs/ls.c +1 -2
@@ -156,8 +156,7 @@ static int list_dir_proc(ext2_ino_t dir EXT2FS_ATTR((unused)),fprintf (ls->f,"%5d" , inode.i_size); else fprintf(ls->f, "%5llu", EXT2_I_SIZE(&inode)); -fputs (datestr, ls->f); -fputc (' ' , ls->f); +fprintf (ls->f," %s " , datestr);print_filename (ls->f, dirent, options);fputc ('\n' , ls->f); }else {
Signature · 1 line
2.11.1
Quoted 11 lines · Eric Biggers
From: Eric Biggers <[email protected]>
Before:
11 40700 (2) 0 0 1228812-Feb-2017 12:51 lost+foundAfter:
11 40700 (2) 0 0 12288 12-Feb-2017 12:51 lost+foundFixes 68a1de3df340 ("debugfs: pretty print encrypted filenames in the ls command")Signed-off-by Eric Biggers <[email protected]>
Reviewed-by Andreas Dilger <[email protected]>
Quoted 19 lines
---
debugfs/ls.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)debugfs/ls.c +1
-3@@ -156,8 +156,7 @@ static int list_dir_proc(ext2_ino_t dir EXT2FS_ATTR((unused)),fprintf (ls->f,"%5d" , inode.i_size); else fprintf(ls->f, "%5llu", EXT2_I_SIZE(&inode)); -fputs (datestr, ls->f); -fputc (' ' , ls->f); +fprintf (ls->f," %s " , datestr);print_filename (ls->f, dirent, options);fputc ('\n' , ls->f); }else { --
Quoted 2 lines
2.11.1
Cheers, Andreas
Theodore Ts'o
AppliedQuoted 10 lines · Eric Biggers
From: Eric Biggers <[email protected]>
Before:
11 40700 (2) 0 0 1228812-Feb-2017 12:51 lost+foundAfter:
11 40700 (2) 0 0 12288 12-Feb-2017 12:51 lost+foundFixes 68a1de3df340 ("debugfs: pretty print encrypted filenames in the ls command")Signed-off-by Eric Biggers <[email protected]>
Thanks, applied.
- Ted