• Chao Yu's avatar
    f2fs: fix to create selinux label during whiteout initialization · 40b2d55e
    Chao Yu authored
    generic/700       - output mismatch (see /media/fstests/results//generic/700.out.bad)
        --- tests/generic/700.out	2023-03-28 10:40:42.735529223 +0000
        +++ /media/fstests/results//generic/700.out.bad	2024-02-06 04:37:56.000000000 +0000
        @@ -1,2 +1,4 @@
         QA output created by 700
        +/mnt/scratch_f2fs/f1: security.selinux: No such attribute
        +/mnt/scratch_f2fs/f2: security.selinux: No such attribute
         Silence is golden
        ...
        (Run 'diff -u /media/fstests/tests/generic/700.out /media/fstests/results//generic/700.out.bad'  to see the entire diff)
    
    HINT: You _MAY_ be missing kernel fix:
          70b589a3 xfs: add selinux labels to whiteout inodes
    
    Previously, it missed to create selinux labels during whiteout inode
    initialization, fix this issue.
    
    Fixes: 7e01e7ad ("f2fs: support RENAME_WHITEOUT")
    Signed-off-by: default avatarChao Yu <chao@kernel.org>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    40b2d55e
dir.c 28 KB