Whamcloud - gitweb
- In ordinary writes (not O_DIRECT) do not round the data object file
authorbraam <braam>
Wed, 21 Aug 2002 03:41:13 +0000 (03:41 +0000)
committerbraam <braam>
Wed, 21 Aug 2002 03:41:13 +0000 (03:41 +0000)
  size to a page boundary.   Objects are now as long as they should
  be.

lustre/obdfilter/filter.c
lustre/ost/ost_handler.c
lustre/tests/local.sh

index c823a65..26a1b11 100644 (file)
@@ -1179,7 +1179,7 @@ static int filter_preprw(int cmd, struct lustre_handle *conn,
                         r->addr = page_address(page);
                         r->offset = b->offset;
                         r->page = page;
-                        r->len = PAGE_SIZE;
+                        r->len = b->len;
                 }
         }
 
@@ -1285,7 +1285,7 @@ static int filter_commitrw(int cmd, struct lustre_handle *conn,
 
                         if (cmd & OBD_BRW_WRITE) {
                                 int err = filter_commit_write(page, 0,
-                                                              PAGE_SIZE, 0);
+                                                              r->len, 0);
 
                                 if (!rc)
                                         rc = err;
index b82912d..33615ad 100644 (file)
@@ -382,7 +382,7 @@ static int ost_brw_write(struct ptlrpc_request *req)
                 bulk->b_page = lnb->page;
                 bulk->b_flags = lnb->flags;
                 bulk->b_dentry = lnb->dentry;
-                bulk->b_buflen = PAGE_SIZE;
+                bulk->b_buflen = lnb->len;
                 bulk->b_cb = NULL;
 
                 /* this advances remote_nb */
index 242bdf6..26075a1 100755 (executable)
@@ -1,16 +1,21 @@
 #!/bin/bash
 
-config=local.xml
+config=uml.xml
 LMC=../utils/lmc
 
+echo "FIXME: autoformat is no by default, edit $config to change"
+
 # create nodes
-${LMC} -o $config --node localhost --net uml1 tcp 
+${LMC} -o $config --node localhost --net localhost tcp 
 
 # configure mds server
-${LMC} -m $config --format  --node localhost --mds mds1 /tmp/mds1 50000
+${LMC} -m $config  --node localhost --mds mds1 /tmp/mds1 50000
 
 # configure ost
-${LMC} -m $config --format --node localhost --ost /tmp/ost1 100000
+${LMC} -m $config  --node localhost --ost /tmp/ost1 100000
+# is this needed?
+# ${LMC} -m $config  --node localhost --mdc MDC_mds1
 
 # create client config
-${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 OSC_localhost
+${LMC} -m $config  --node localhost --mtpt /mnt/lustre mds1 ost1
+