From owner-svn-src-head@FreeBSD.ORG Thu Jul 9 18:49:26 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81F5110656C1; Thu, 9 Jul 2009 18:49:26 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6F4CB8FC1B; Thu, 9 Jul 2009 18:49:26 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n69InQMJ093898; Thu, 9 Jul 2009 18:49:26 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n69InQDt093896; Thu, 9 Jul 2009 18:49:26 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200907091849.n69InQDt093896@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 9 Jul 2009 18:49:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195508 - head/sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 18:49:27 -0000 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