svn commit: r195508 - head/sys/sys
Konstantin Belousov
kib at FreeBSD.org
Thu Jul 9 18:49:27 UTC 2009
Author: kib
Date: Thu Jul 9 18:49:26 2009
New Revision: 195508
URL: http://svn.freebsd.org/changeset/base/195508
Log:
Extend the cn_flags field of the struct componentname to 64 bits to have
more space for the flags, that is too close to be exhausted. While changing
the KBI for name(9), use unsigned int for symlinks count.
Suggested by: rwatson
Approved by: re (kensmith)
Modified:
head/sys/sys/namei.h
Modified: head/sys/sys/namei.h
==============================================================================
--- head/sys/sys/namei.h Thu Jul 9 18:18:03 2009 (r195507)
+++ head/sys/sys/namei.h Thu Jul 9 18:49:26 2009 (r195508)
@@ -41,7 +41,7 @@ struct componentname {
* Arguments to lookup.
*/
u_long cn_nameiop; /* namei operation */
- u_long cn_flags; /* flags to namei */
+ u_int64_t cn_flags; /* flags to namei */
struct thread *cn_thread;/* thread requesting lookup */
struct ucred *cn_cred; /* credentials */
int cn_lkflags; /* Lock flags LK_EXCLUSIVE or LK_SHARED */
@@ -80,7 +80,7 @@ struct nameidata {
*/
size_t ni_pathlen; /* remaining chars in path */
char *ni_next; /* next location in pathname */
- u_long ni_loopcnt; /* count of symlinks encountered */
+ u_int ni_loopcnt; /* count of symlinks encountered */
/*
* Lookup parameters: this structure describes the subset of
* information from the nameidata structure that is passed
More information about the svn-src-all
mailing list