[PATCH v4 11/33] fs: Add a function to set the filesystem type