Module Name: src
Committed By: pooka
Date: Tue Jun 22 12:33:15 UTC 2010
Modified Files:
src/sys/rump/librump/rumpvfs: rumpfs.c
Log Message:
Remove overeager checks.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/rump/librump/rumpvfs/rumpfs.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/rumpfs.c
diff -u src/sys/rump/librump/rumpvfs/rumpfs.c:1.55 src/sys/rump/librump/rumpvfs/rumpfs.c:1.56
--- src/sys/rump/librump/rumpvfs/rumpfs.c:1.55 Wed Jun 16 19:26:58 2010
+++ src/sys/rump/librump/rumpvfs/rumpfs.c Tue Jun 22 12:33:15 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.55 2010/06/16 19:26:58 pooka Exp $ */
+/* $NetBSD: rumpfs.c,v 1.56 2010/06/22 12:33:15 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.55 2010/06/16 19:26:58 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.56 2010/06/22 12:33:15 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -358,17 +358,6 @@
enum rump_etfs_type ftype, uint64_t begin, uint64_t size)
{
- /*
- * Check that we're mapping at block offsets. I guess this
- * is not technically necessary except for BLK/CHR backends
- * (i.e. what getfileinfo() returns, not ftype) and can be
- * removed later if there are problems.
- */
- if ((begin & (DEV_BSIZE-1)) != 0)
- return EINVAL;
- if (size != RUMP_ETFS_SIZE_ENDOFF && (size & (DEV_BSIZE-1)) != 0)
- return EINVAL;
-
return doregister(key, hostpath, ftype, begin, size);
}