Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
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
Service Desk
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
Verlässliche Systemsoftware
projects
osv
Commits
9ea9000f
Commit
9ea9000f
authored
11 years ago
by
Christoph Hellwig
Browse files
Options
Downloads
Patches
Plain Diff
vfs: provide a more complete struct vattr
parent
1eb0425c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bsd/sys/cddl/compat/opensolaris/sys/vnode.h
+0
-12
0 additions, 12 deletions
bsd/sys/cddl/compat/opensolaris/sys/vnode.h
include/osv/vnode.h
+12
-1
12 additions, 1 deletion
include/osv/vnode.h
with
12 additions
and
13 deletions
bsd/sys/cddl/compat/opensolaris/sys/vnode.h
+
0
−
12
View file @
9ea9000f
...
...
@@ -103,18 +103,6 @@ vn_is_readonly(vnode_t *vp)
#define cleanlocks(vp, pid, foo) do { } while (0)
#define cleanshares(vp, pid) do { } while (0)
/*
* We will use va_spare is place of Solaris' va_mask.
* This field is initialized in zfs_setattr().
*/
#define va_mask va_spare
/* TODO: va_fileid is shorter than va_nodeid !!! */
#define va_nodeid va_fileid
/* TODO: This field needs conversion! */
#define va_nblocks va_bytes
#define va_blksize va_blocksize
#define va_seq va_gen
#define MAXOFFSET_T LONG_MAX
#define EXCL 0
...
...
This diff is collapsed.
Click to expand it.
include/osv/vnode.h
+
12
−
1
View file @
9ea9000f
...
...
@@ -88,8 +88,19 @@ struct vnode {
* Vnode attribute
*/
struct
vattr
{
int
va_type
;
/* vnode type */
unsigned
int
va_mask
;
enum
vtype
va_type
;
/* vnode type */
mode_t
va_mode
;
/* file access mode */
nlink_t
va_nlink
;
uid_t
va_uid
;
gid_t
va_gid
;
ino_t
va_nodeid
;
struct
timespec
va_atime
;
struct
timespec
va_mtime
;
struct
timespec
va_ctime
;
dev_t
va_rdev
;
uint64_t
va_nblocks
;
off_t
va_size
;
};
/*
...
...
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