virtiofsd: Move core file creation code in separate function
authorVivek Goyal <vgoyal@redhat.com>
Tue, 8 Feb 2022 20:48:09 +0000 (15:48 -0500)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 17 Feb 2022 17:22:26 +0000 (17:22 +0000)
commit81489726ad8d9adc2710eb7acff8e3d9c056dbdb
treeff61d7177caa282ede2fd317340e1a54648ac303
parent36cfab870e834209d034266592786310acea8311
virtiofsd: Move core file creation code in separate function

Move core file creation bits in a separate function. Soon this is going
to get more complex as file creation need to set security context also.
And there will be multiple modes of file creation in next patch.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Message-Id: <20220208204813.682906-7-vgoyal@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_ll.c