Module Name: src Committed By: pooka Date: Tue Dec 22 14:18:33 UTC 2009
Modified Files: src/sys/rump/librump/rumpvfs: rumpblk.c Log Message: Fix block device open for non-REG backends. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/rump/librump/rumpvfs/rumpblk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpvfs/rumpblk.c diff -u src/sys/rump/librump/rumpvfs/rumpblk.c:1.34 src/sys/rump/librump/rumpvfs/rumpblk.c:1.35 --- src/sys/rump/librump/rumpvfs/rumpblk.c:1.34 Thu Dec 3 14:05:46 2009 +++ src/sys/rump/librump/rumpvfs/rumpblk.c Tue Dec 22 14:18:33 2009 @@ -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);