Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libtcg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton
libtcg
Commits
1a8d0bb3
Commit
1a8d0bb3
authored
7 years ago
by
Greg Kurz
Browse files
Options
Downloads
Patches
Plain Diff
fsdev: fix some type definitions
To comply with the QEMU coding style. Signed-off-by:
Greg Kurz
<
groug@kaod.org
>
parent
01847522
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsdev/file-op-9p.h
+14
-17
14 additions, 17 deletions
fsdev/file-op-9p.h
with
14 additions
and
17 deletions
fsdev/file-op-9p.h
+
14
−
17
View file @
1a8d0bb3
...
...
@@ -22,21 +22,19 @@
#define SM_LOCAL_MODE_BITS 0600
#define SM_LOCAL_DIR_MODE_BITS 0700
typedef
struct
FsCred
{
typedef
struct
FsCred
{
uid_t
fc_uid
;
gid_t
fc_gid
;
mode_t
fc_mode
;
dev_t
fc_rdev
;
}
FsCred
;
struc
t
FsContext
;
struct
V9fsPath
;
typedef
struct
FsContex
t
FsContext
;
typedef
struct
V9fsPath
V9fsPath
;
typedef
struct
extended_ops
{
int
(
*
get_st_gen
)(
struct
FsContext
*
,
struct
V9fsPath
*
,
mode_t
,
uint64_t
*
);
}
extended_ops
;
typedef
struct
ExtendedOps
{
int
(
*
get_st_gen
)(
FsContext
*
,
V9fsPath
*
,
mode_t
,
uint64_t
*
);
}
ExtendedOps
;
/* export flags */
#define V9FS_IMMEDIATE_WRITEOUT 0x00000001
...
...
@@ -81,24 +79,23 @@ typedef struct FsDriverEntry {
mode_t
dmode
;
}
FsDriverEntry
;
typedef
struct
FsContext
{
struct
FsContext
{
uid_t
uid
;
char
*
fs_root
;
int
export_flags
;
XattrOperations
**
xops
;
struct
e
xtended
_o
ps
exops
;
E
xtended
O
ps
exops
;
FsThrottle
*
fst
;
/* fs driver specific data */
void
*
private
;
mode_t
fmode
;
mode_t
dmode
;
}
FsContext
;
};
typedef
struct
V9fsPath
{
struct
V9fsPath
{
uint16_t
size
;
char
*
data
;
}
V9fsPath
;
};
typedef
union
V9fsFidOpenState
V9fsFidOpenState
;
...
...
@@ -106,9 +103,9 @@ void cred_init(FsCred *);
struct
FileOperations
{
int
(
*
parse_opts
)(
QemuOpts
*
,
struct
FsDriverEntry
*
);
int
(
*
init
)(
struct
FsContext
*
);
void
(
*
cleanup
)(
struct
FsContext
*
);
int
(
*
parse_opts
)(
QemuOpts
*
,
FsDriverEntry
*
);
int
(
*
init
)(
FsContext
*
);
void
(
*
cleanup
)(
FsContext
*
);
int
(
*
lstat
)(
FsContext
*
,
V9fsPath
*
,
struct
stat
*
);
ssize_t
(
*
readlink
)(
FsContext
*
,
V9fsPath
*
,
char
*
,
size_t
);
int
(
*
chmod
)(
FsContext
*
,
V9fsPath
*
,
FsCred
*
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment