summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/cachefs/cachefs_log.c
diff options
context:
space:
mode:
authorcasper <none@none>2007-05-25 05:43:42 -0700
committercasper <none@none>2007-05-25 05:43:42 -0700
commitf48205be61a214698b763ff550ab9e657525104c (patch)
treebc63168b8468284765bb770eb48473b7a0bf980e /usr/src/uts/common/fs/cachefs/cachefs_log.c
parent7387092aa96cd872b317dfab3fee34a96c681f3e (diff)
downloadillumos-joyent-f48205be61a214698b763ff550ab9e657525104c.tar.gz
PSARC 2007/064 Unified POSIX and Windows Credentials for Solaris
4994017 data structure sharing between rpcbind and libnsl leads to accidents 6549510 Need the ability to store SIDs in the Solaris cred_t 6549515 PSARC 2007/064: uid_t and gid_t to become unsigned
Diffstat (limited to 'usr/src/uts/common/fs/cachefs/cachefs_log.c')
-rw-r--r--usr/src/uts/common/fs/cachefs/cachefs_log.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/usr/src/uts/common/fs/cachefs/cachefs_log.c b/usr/src/uts/common/fs/cachefs/cachefs_log.c
index 0fe25933d0..8d0103cd39 100644
--- a/usr/src/uts/common/fs/cachefs/cachefs_log.c
+++ b/usr/src/uts/common/fs/cachefs/cachefs_log.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -866,7 +865,7 @@ cachefs_xdr_getpage(XDR *xdrs, struct cachefs_log_getpage_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)) ||
+ (! xdr_u_int(xdrs, &rec->uid)) ||
(! xdr_u_longlong_t(xdrs, &rec->offset)) ||
(! xdr_u_int(xdrs, &rec->len)))
return (FALSE);
@@ -914,7 +913,7 @@ cachefs_xdr_readdir(XDR *xdrs, struct cachefs_log_readdir_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)) ||
+ (! xdr_u_int(xdrs, &rec->uid)) ||
(! xdr_u_longlong_t(xdrs, (u_longlong_t *)&rec->offset)) ||
(! xdr_int(xdrs, &rec->eof)))
return (FALSE);
@@ -961,7 +960,7 @@ cachefs_xdr_readlink(XDR *xdrs, struct cachefs_log_readlink_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)) ||
+ (! xdr_u_int(xdrs, &rec->uid)) ||
(! xdr_u_int(xdrs, &rec->length)))
return (FALSE);
@@ -1006,7 +1005,7 @@ cachefs_xdr_remove(XDR *xdrs, struct cachefs_log_remove_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)))
+ (! xdr_u_int(xdrs, &rec->uid)))
return (FALSE);
return (TRUE);
@@ -1050,7 +1049,7 @@ cachefs_xdr_rmdir(XDR *xdrs, struct cachefs_log_rmdir_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)))
+ (! xdr_u_int(xdrs, &rec->uid)))
return (FALSE);
return (TRUE);
@@ -1095,7 +1094,7 @@ cachefs_xdr_truncate(XDR *xdrs, struct cachefs_log_truncate_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)) ||
+ (! xdr_u_int(xdrs, &rec->uid)) ||
(! xdr_u_longlong_t(xdrs, &rec->size)))
return (FALSE);
@@ -1142,7 +1141,7 @@ cachefs_xdr_putpage(XDR *xdrs, struct cachefs_log_putpage_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)) ||
+ (! xdr_u_int(xdrs, &rec->uid)) ||
(! xdr_u_longlong_t(xdrs, (u_longlong_t *)&rec->offset)) ||
(! xdr_u_int(xdrs, &rec->len)))
return (FALSE);
@@ -1188,7 +1187,7 @@ cachefs_xdr_create(XDR *xdrs, struct cachefs_log_create_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)))
+ (! xdr_u_int(xdrs, &rec->uid)))
return (FALSE);
return (TRUE);
@@ -1234,7 +1233,7 @@ cachefs_xdr_mkdir(XDR *xdrs, struct cachefs_log_mkdir_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)))
+ (! xdr_u_int(xdrs, &rec->uid)))
return (FALSE);
return (TRUE);
@@ -1279,7 +1278,7 @@ cachefs_xdr_rename(XDR *xdrs, struct cachefs_log_rename_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->gone, sizeof (rec->gone))) ||
(! xdr_int(xdrs, &rec->removed)) ||
- (! xdr_int(xdrs, &rec->uid)))
+ (! xdr_u_int(xdrs, &rec->uid)))
return (FALSE);
return (TRUE);
@@ -1325,7 +1324,7 @@ cachefs_xdr_symlink(XDR *xdrs, struct cachefs_log_symlink_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)) ||
+ (! xdr_u_int(xdrs, &rec->uid)) ||
(! xdr_u_int(xdrs, &rec->size)))
return (FALSE);
@@ -1550,7 +1549,7 @@ cachefs_xdr_gpfront(XDR *xdrs, struct cachefs_log_gpfront_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)) ||
+ (! xdr_u_int(xdrs, &rec->uid)) ||
(! xdr_u_longlong_t(xdrs, (u_longlong_t *)&rec->off)) ||
(! xdr_u_int(xdrs, &rec->len)))
return (FALSE);
@@ -1596,7 +1595,7 @@ cachefs_xdr_rfdir(XDR *xdrs, struct cachefs_log_rfdir_record *rec)
(! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) ||
(! xdr_opaque(xdrs, (caddr_t)&rec->fid, sizeof (rec->fid))) ||
(! xdr_ino64(xdrs, &rec->fileno)) ||
- (! xdr_int(xdrs, &rec->uid)))
+ (! xdr_u_int(xdrs, &rec->uid)))
return (FALSE);
return (TRUE);