Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-localcount]: src/sys/miscfs/specfs Restore original handling of...
details: https://anonhg.NetBSD.org/src/rev/487552547aaf
branches: pgoyette-localcount
changeset: 852851:487552547aaf
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Jul 23 05:01:09 2016 +0000
description:
Restore original handling of ioctl() returns. If the underlying disk's
ioctl() returns success, we call uvm_vnp_setsize(). Regardless of any
error from the ioctl() call we should return success.
diffstat:
sys/miscfs/specfs/spec_vnops.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 9826ab139ebf -r 487552547aaf sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c Sat Jul 23 03:20:37 2016 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c Sat Jul 23 05:01:09 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spec_vnops.c,v 1.162.2.3 2016/07/22 01:50:12 pgoyette Exp $ */
+/* $NetBSD: spec_vnops.c,v 1.162.2.4 2016/07/23 05:01:09 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.162.2.3 2016/07/22 01:50:12 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.162.2.4 2016/07/23 05:01:09 pgoyette Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -661,6 +661,13 @@
if (error == 0)
uvm_vnp_setsize(vp, (voff_t)pi.pi_secsize * pi.pi_size);
+ if (cdev != NULL)
+ cdevsw_release(cdev);
+ if (bdev != NULL)
+ bdevsw_release(bdev);
+
+ return 0;
+
out:
if (cdev != NULL)
cdevsw_release(cdev);
Home |
Main Index |
Thread Index |
Old Index