vboxsf: don't allow to change the inode type
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Feb 2021 05:12:23 +0000 (00:12 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Mar 2021 03:15:00 +0000 (22:15 -0500)
commite98f93e7ca71da61bc2ae7f433022e80bcb07d21
treeb31f17632e4d56e2aa97105f21e59d1bb34bc945
parent6e1eb04a87f954eb06a89ee6034c166351dfff6e
vboxsf: don't allow to change the inode type

vboxsf_init_inode() is used both for initial setup of inode and for metadata
updates.  Tell it whether we are updating a live inode or setting up a new
instance and have it refuse to change type in the former case.

[fixed the braino caught by Hans de Goede <hdegoede@redhat.com>]

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/vboxsf/dir.c
fs/vboxsf/super.c
fs/vboxsf/utils.c
fs/vboxsf/vfsmod.h