Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs Fix block device open for non-REG b...
details: https://anonhg.NetBSD.org/src/rev/b2e7b0d8f24b
branches: trunk
changeset: 750265:b2e7b0d8f24b
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Dec 22 14:18:33 2009 +0000
description:
Fix block device open for non-REG backends.
diffstat:
sys/rump/librump/rumpvfs/rumpblk.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 9f8b5da70008 -r b2e7b0d8f24b sys/rump/librump/rumpvfs/rumpblk.c
--- a/sys/rump/librump/rumpvfs/rumpblk.c Tue Dec 22 14:12:40 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rumpblk.c Tue Dec 22 14:18:33 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpblk.c,v 1.34 2009/12/03 14:05:46 pooka Exp $ */
+/* $NetBSD: rumpblk.c,v 1.35 2009/12/22 14:18:33 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.34 2009/12/03 14:05:46 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.35 2009/12/22 14:18:33 pooka Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -492,6 +492,8 @@
break;
}
}
+ } else {
+ rblk->rblk_fd = fd;
}
KASSERT(rblk->rblk_fd != -1);
Home |
Main Index |
Thread Index |
Old Index