diff options
author | phk <phk@FreeBSD.org> | 2003-07-27 17:04:56 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-07-27 17:04:56 +0000 |
commit | d4d7ca154aba6a0f8370fe818bb79bd7685b9fdc (patch) | |
tree | 9fe71cfe1133914703f5c502a7c60529cda9fff5 /sys/dev/md/md.c | |
parent | b40be37a17ddb7368dd149f10f7c780fa8cfed66 (diff) | |
download | FreeBSD-src-d4d7ca154aba6a0f8370fe818bb79bd7685b9fdc.zip FreeBSD-src-d4d7ca154aba6a0f8370fe818bb79bd7685b9fdc.tar.gz |
Add fdidx argument to vn_open() and vn_open_cred() and pass -1 throughout.
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r-- | sys/dev/md/md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 57eed2e..4898762 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -840,13 +840,13 @@ mdcreate_vnode(struct md_ioctl *mdio, struct thread *td) flags = FREAD|FWRITE; NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, mdio->md_file, td); - error = vn_open(&nd, &flags, 0); + error = vn_open(&nd, &flags, 0, -1); if (error) { if (error != EACCES && error != EPERM && error != EROFS) return (error); flags &= ~FWRITE; NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, mdio->md_file, td); - error = vn_open(&nd, &flags, 0); + error = vn_open(&nd, &flags, 0, -1); if (error) return (error); } |