Whamcloud - gitweb
- make directIO conditional on kernel version
authorbraam <braam>
Sun, 12 May 2002 02:34:55 +0000 (02:34 +0000)
committerbraam <braam>
Sun, 12 May 2002 02:34:55 +0000 (02:34 +0000)
- add ext2obd patch for 2.4.9
- change ha_assist2 to failover at LLNL
- fix exit code from llmountcleanup.sh to allow kimberlite to work.

lustre/llite/rw.c
lustre/tests/common.sh
lustre/tests/llmountcleanup.sh
lustre/utils/ha_assist2.sh

index 2ad813a..cbc2e41 100644 (file)
@@ -407,7 +407,9 @@ int ll_direct_IO(int rw, struct inode * inode, struct kiobuf * iobuf, unsigned l
 struct address_space_operations ll_aops = {
         readpage: ll_readpage,
         writepage: ll_writepage,
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,4,17))
         direct_IO: ll_direct_IO,
+#endif
         sync_page: block_sync_page,
         prepare_write: ll_prepare_write, 
         commit_write: ll_commit_write,
index f8eee90..9843989 100644 (file)
@@ -142,6 +142,10 @@ setup_portals() {
                exit -1
        fi
 
+       if [ -z "$OSTNODE" ]; then 
+               OSTNODE=$SERVER
+        fi 
+
        if [ "$LOCALHOST" == "$SERVER" ]; then
                DLM=localhost
        else
@@ -169,6 +173,7 @@ setup_portals() {
        connect $SERVER $PORT
        add_uuid self
        add_uuid mds
+       connect $OSTNODE $PORT
        add_uuid ost
        connect $DLM $PORT
        add_uuid ldlm
index bb95d45..b9ce682 100755 (executable)
@@ -64,3 +64,4 @@ rmmod portals
 losetup -d ${LOOP}0
 losetup -d ${LOOP}1
 losetup -d ${LOOP}2
+exit 0
index 5cf61b2..4a67434 100755 (executable)
@@ -19,7 +19,7 @@ echo "- please supply a new mds"
 setup tcp
 close_uuid mds
 del_uuid mds
-connect localhost 1234
+connect dev5 1234
 add_uuid mds
 quit
 EOF3