Whamcloud - gitweb
Branch: b1_2
authoradilger <adilger>
Thu, 7 Oct 2004 17:01:23 +0000 (17:01 +0000)
committeradilger <adilger>
Thu, 7 Oct 2004 17:01:23 +0000 (17:01 +0000)
Don't clear GRANT flag for a grant we just set.
b=3751

lustre/ChangeLog
lustre/obdfilter/filter_io.c
lustre/utils/lconf

index 983ead3..cf0f99a 100644 (file)
@@ -11,6 +11,7 @@ tbd         Cluster File Systems, Inc. <info@clusterfs.com>
        - don't unlink "objects" from directory with default EA (4554)
        - hold socknal file ref over connect in case target is down (4394)
        - allow more than 32000 subdirectories in a single directory (3244)
+       - fix blocks count for O_DIRECT writes (3751)
        - OST returns ENOSPC from object create when no space left (4539)
        - don't send truncate RPC if file size isn't changing (4410)
        - limit OSC precreate to 1/2 of value OST considers bogus (4778)
index 43d0ed7..4a82206 100644 (file)
@@ -601,10 +601,12 @@ static int filter_preprw_write(int cmd, struct obd_export *exp, struct obdo *oa,
 
         /* We're finishing using body->oa as an input variable, so reset
          * o_valid here. */
-        if (oa && oa->o_valid & OBD_MD_FLGRANT)
+        if (oa && oa->o_valid & OBD_MD_FLGRANT) {
                 oa->o_grant = filter_grant(exp,oa->o_grant,oa->o_undirty,left);
-
-        oa->o_valid = 0;
+                oa->o_valid = OBD_MD_FLGRANT;
+        } else if (oa) {
+                oa->o_valid = 0;
+        }
 
         spin_unlock(&exp->exp_obd->obd_osfs_lock);
 
index 082baaa..cb8d14a 100755 (executable)
@@ -441,7 +441,7 @@ class LCTLInterface:
     def connect(self, srv):
         self.add_uuid(srv.net_type, srv.nid_uuid, srv.nid)
         if srv.net_type  in ('tcp',) and not config.lctl_dump:
-            flags = 's'
+            flags = 'se'
             if srv.irq_affinity:
                 flags = flags + 'i'
             self.add_autoconn(srv.net_type, srv.send_mem, srv.recv_mem,