Date: Thu, 9 Jul 2009 18:49:26 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r195508 - head/sys/sys Message-ID: <200907091849.n69InQDt093896@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907091849.n69InQDt093896>