The main motivation for this change is that only Loris supports multithreading, and Loris supports dynamic thread allocation, so the number of supported threads can be implemented as a bit flag (i.e., either 1 or "at least as many as VFS has"). The ABI break obviates the need to support file system versioning at this time, and several other aspects are better implemented as flags as well. Other changes: - replace peek/bpeek test upon mount with FS flag as well; - mark libsffs as 64-bit file size capable; - remove old (3.2.1) getdents support. Change-Id: I313eace9c50ed816656c31cd47d969033d952a03
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
#ifndef __VFS_VMNT_H__
|
|
#define __VFS_VMNT_H__
|
|
|
|
#include "tll.h"
|
|
#include "type.h"
|
|
|
|
EXTERN struct vmnt {
|
|
int m_fs_e; /* FS process' kernel endpoint */
|
|
tll_t m_lock;
|
|
comm_t m_comm;
|
|
dev_t m_dev; /* device number */
|
|
unsigned int m_flags; /* mount flags */
|
|
unsigned int m_fs_flags; /* capability flags returned by FS */
|
|
struct vnode *m_mounted_on; /* vnode on which the partition is mounted */
|
|
struct vnode *m_root_node; /* root vnode */
|
|
char m_label[LABEL_MAX]; /* label of the file system process */
|
|
char m_mount_path[PATH_MAX]; /* path on which vmnt is mounted */
|
|
char m_mount_dev[PATH_MAX]; /* device from which vmnt is mounted */
|
|
char m_fstype[FSTYPE_MAX]; /* file system type */
|
|
struct statvfs_cache m_stats; /* cached file system statistics */
|
|
} vmnt[NR_MNTS];
|
|
|
|
/* vmnt flags */
|
|
#define VMNT_READONLY 01 /* Device mounted readonly */
|
|
#define VMNT_CALLBACK 02 /* FS did back call */
|
|
#define VMNT_MOUNTING 04 /* Device is being mounted */
|
|
#define VMNT_FORCEROOTBSF 010 /* Force usage of none-device */
|
|
#define VMNT_CANSTAT 020 /* Include FS in getvfsstat output */
|
|
|
|
/* vmnt lock types mapping */
|
|
#define VMNT_READ TLL_READ
|
|
#define VMNT_WRITE TLL_READSER
|
|
#define VMNT_EXCL TLL_WRITE
|
|
|
|
#endif
|