Merge pull request #3935 from enkiller/0926-1225

[dfs] fix the DEVICE could not get or set flags
This commit is contained in:
Bernard Xiong
2020-09-27 08:14:23 +08:00
committed by GitHub

View File

@@ -157,7 +157,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
return -EINVAL;
/* regular file system fd */
if (fd->type == FT_REGULAR)
if (fd->type == FT_REGULAR || fd->type == FT_DEVICE)
{
switch (cmd)
{