Skip to content
Snippets Groups Projects
Commit 9ea9000f authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

vfs: provide a more complete struct vattr

parent 1eb0425c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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;
};
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment