vfs_lxip: classify 'data' file as continuous

Fixes #3603
This commit is contained in:
Christian Prochaska 2020-01-10 15:14:12 +01:00 committed by Christian Helmuth
parent 2256f5fb4b
commit 746d373362
1 changed files with 3 additions and 2 deletions

View File

@ -1770,11 +1770,12 @@ class Vfs::Lxip_file_system : public Vfs::File_system,
if (dynamic_cast<Vfs::Directory*>(node)) {
out.type = Node_type::DIRECTORY;
out.rwx = Node_rwx::rwx();
out.size = 1;
return STAT_OK;
}
if (dynamic_cast<Lxip_file*>(node)) {
out.type = Node_type::TRANSACTIONAL_FILE;
if (dynamic_cast<Lxip_data_file*>(node)) {
out.type = Node_type::CONTINUOUS_FILE;
out.rwx = Node_rwx::rw();
out.size = 0;
return STAT_OK;