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 Remove overeager checks.



details:   https://anonhg.NetBSD.org/src/rev/b44f58e27bc1
branches:  trunk
changeset: 755805:b44f58e27bc1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jun 22 12:33:15 2010 +0000

description:
Remove overeager checks.

diffstat:

 sys/rump/librump/rumpvfs/rumpfs.c |  15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diffs (36 lines):

diff -r 7ed9f47d010f -r b44f58e27bc1 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Tue Jun 22 09:41:33 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Tue Jun 22 12:33:15 2010 +0000
@@ -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);
 }
 



Home | Main Index | Thread Index | Old Index