fs/ntfs3: Make hidedotfiles mount option work when renaming files
authorDaniel Pinto <danielpinto52@gmail.com>
Mon, 10 Oct 2022 11:32:12 +0000 (12:32 +0100)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Sat, 12 Nov 2022 17:59:43 +0000 (20:59 +0300)
commit66223324cba4290ba45c612fe1e31a265636ad2d
treeff9a59fd6c104ee135ce247447522670ff80d63c
parent4c9ba192c73f52dc1d549fcfeb109b725fea8950
fs/ntfs3: Make hidedotfiles mount option work when renaming files

Currently, the hidedotfiles mount option only has an effect when
creating new files. Removing or adding the starting dot when moving
or renaming files does not update the hidden attribute.

Make hidedotfiles also set or uset the hidden attribute when a file
gains or loses its starting dot by being moved or renamed.

Signed-off-by: Daniel Pinto <danielpinto52@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/frecord.c