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)
This commit is contained in:
parent
2cc80ae557
commit
1d587edb3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user