Commit 17dc1fea authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

mount: Align members of mount_info

This a way easier for reading.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4cf4acc5
...@@ -101,10 +101,10 @@ struct fstype { ...@@ -101,10 +101,10 @@ struct fstype {
struct ext_mount; struct ext_mount;
struct mount_info { struct mount_info {
int mnt_id; int mnt_id;
int parent_mnt_id; int parent_mnt_id;
unsigned int s_dev; unsigned int s_dev;
char *root; char *root;
/* /*
* During dump mountpoint contains path with dot at the * During dump mountpoint contains path with dot at the
* beginning. It allows to use openat, statat, etc without * beginning. It allows to use openat, statat, etc without
...@@ -115,42 +115,42 @@ struct mount_info { ...@@ -115,42 +115,42 @@ struct mount_info {
* mount tree is constructed. Check mnt_roots for details. * mount tree is constructed. Check mnt_roots for details.
* The ns_mountpoint contains path w/o this prefix. * The ns_mountpoint contains path w/o this prefix.
*/ */
char *mountpoint; char *mountpoint;
char *ns_mountpoint; char *ns_mountpoint;
unsigned flags; unsigned flags;
int master_id; int master_id;
int shared_id; int shared_id;
struct fstype *fstype; struct fstype *fstype;
char *source; char *source;
char *options; char *options;
union { union {
bool mounted; bool mounted;
bool dumped; bool dumped;
}; };
bool need_plugin; bool need_plugin;
int is_file; int is_file;
bool is_ns_root; bool is_ns_root;
struct mount_info *next; struct mount_info *next;
struct ns_id *nsid; struct ns_id *nsid;
struct ext_mount *external; struct ext_mount *external;
bool internal_sharing; bool internal_sharing;
/* tree linkage */ /* tree linkage */
struct mount_info *parent; struct mount_info *parent;
struct mount_info *bind; struct mount_info *bind;
struct list_head children; struct list_head children;
struct list_head siblings; struct list_head siblings;
struct list_head mnt_bind; /* circular list of derivatives of one real mount */ struct list_head mnt_bind; /* circular list of derivatives of one real mount */
struct list_head mnt_share; /* circular list of shared mounts */ struct list_head mnt_share; /* circular list of shared mounts */
struct list_head mnt_slave_list;/* list of slave mounts */ struct list_head mnt_slave_list; /* list of slave mounts */
struct list_head mnt_slave; /* slave list entry */ struct list_head mnt_slave; /* slave list entry */
struct mount_info *mnt_master; /* slave is on master->mnt_slave_list */ struct mount_info *mnt_master; /* slave is on master->mnt_slave_list */
struct list_head postpone; struct list_head postpone;
void *private; /* associated filesystem data */ void *private; /* associated filesystem data */
}; };
extern struct mount_info *mnt_entry_alloc(); extern struct mount_info *mnt_entry_alloc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment