fs/mount: Name xipfs in statfs and fs_gettype.

A file system that answers statfs with a magic nothing maps to shows up as
"Unrecognized" in df.  Give xipfs its constant alongside the others in
sys/statfs.h and the case in fs_gettype that turns it into a name.

Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
This commit is contained in:
Marco Casaroli 2026-07-25 15:43:42 +02:00
parent d018ccd89d
commit 53be464a56
2 changed files with 7 additions and 0 deletions

View file

@ -149,6 +149,12 @@ FAR const char *fs_gettype(FAR struct statfs *statbuf)
break;
#endif
#ifdef CONFIG_FS_XIPFS
case XIPFS_MAGIC:
fstype = "xipfs";
break;
#endif
#ifdef CONFIG_FS_ZIPFS
case ZIPFS_MAGIC:
fstype = "zipfs";

View file

@ -98,6 +98,7 @@
#define CROMFS_MAGIC 0x4d4f5243
#define RPMSGFS_MAGIC 0x54534f47
#define ZIPFS_MAGIC 0x504b
#define XIPFS_MAGIC 0x58495046
#define V9FS_MAGIC 0x01021997
#if defined(CONFIG_FS_LARGEFILE)