Whamcloud - gitweb
Add new "lustre" fs type which supports only zeroconf mounts.
authorrread <rread>
Tue, 11 Nov 2003 23:13:14 +0000 (23:13 +0000)
committerrread <rread>
Tue, 11 Nov 2003 23:13:14 +0000 (23:13 +0000)
 - old zeroconf client code removed from lustre-lite, and the lconf
   --zeroconf option deleted
 - common code factored out for ll/lustre fill_super and put_super
 - lconf still uses lustre_lite (but not for long)

llmount will be used by mount for lustre filesystems if copied to
/sbin/mount.lustre:

  mount -t lustre mds_host:/mds_servicee/profile  /mnt/lustre

Multiple mounts of the same filesystem are supported.

Remove unused mds and filter nspath code.

lnet/include/lnet/lnetctl.h
lnet/include/lnet/ptlctl.h
lustre/ldlm/ldlm_lib.c
lustre/llite/llite_internal.h
lustre/portals/include/portals/ptlctl.h
lustre/tests/replay-single.sh

index 0466494..a9942aa 100644 (file)
@@ -29,6 +29,7 @@
 #define OBD_DEV_PATH "/dev/obd"
 
 int ptl_name2nal(char *str);
+int ptl_parse_ipaddr (__u32 *ipaddrp, char *str);
 int ptl_parse_nid (ptl_nid_t *nidp, char *str);
 char * ptl_nid2str (char *buffer, ptl_nid_t nid);
 
index 0466494..a9942aa 100644 (file)
@@ -29,6 +29,7 @@
 #define OBD_DEV_PATH "/dev/obd"
 
 int ptl_name2nal(char *str);
+int ptl_parse_ipaddr (__u32 *ipaddrp, char *str);
 int ptl_parse_nid (ptl_nid_t *nidp, char *str);
 char * ptl_nid2str (char *buffer, ptl_nid_t nid);
 
index 355fb03..b1789af 100644 (file)
@@ -396,6 +396,10 @@ int target_handle_connect(struct ptlrpc_request *req, svc_handler_t handler)
 
         obd_str2uuid (&tgtuuid, str);
         target = class_uuid2obd(&tgtuuid);
+        if (!target) {
+                target = class_name2obd(str);
+        }
+
         if (!target || target->obd_stopping || !target->obd_set_up) {
                 CERROR("UUID '%s' is not available for connect\n", str);
                 GOTO(out, rc = -ENODEV);
index 8264576..3a2b1e6 100644 (file)
@@ -148,13 +148,15 @@ void ll_lookup_finish_locks(struct lookup_intent *it, struct dentry *dentry);
 /* llite/llite_lib.c */
 
 extern struct super_operations ll_super_operations;
+extern struct super_operations lustre_super_operations;
 
 char *ll_read_opt(const char *opt, char *data);
 int ll_set_opt(const char *opt, char *data, int fl);
-void ll_options(char *options, char **ost, char **mds, char **zconf, 
-                char **mds_uuid, char **mds_peer, int *flags);
+void ll_options(char *options, char **ost, char **mds, int *flags);
 void ll_lli_init(struct ll_inode_info *lli);
 int ll_fill_super(struct super_block *sb, void *data, int silent);
+int lustre_fill_super(struct super_block *sb, void *data, int silent);
+void lustre_put_super(struct super_block *sb);
 void ll_put_super(struct super_block *sb);
 struct inode *ll_inode_from_lock(struct ldlm_lock *lock);
 void ll_clear_inode(struct inode *inode);
index 0466494..a9942aa 100644 (file)
@@ -29,6 +29,7 @@
 #define OBD_DEV_PATH "/dev/obd"
 
 int ptl_name2nal(char *str);
+int ptl_parse_ipaddr (__u32 *ipaddrp, char *str);
 int ptl_parse_nid (ptl_nid_t *nidp, char *str);
 char * ptl_nid2str (char *buffer, ptl_nid_t nid);
 
index f06b951..7d97622 100755 (executable)
@@ -70,8 +70,10 @@ cleanup() {
         fail mds
     fi
 
-    $LCONF  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
-       --local_nid $client_HOST --profile client_facet --mount $MOUNT
+    umount  $MOUNT || :
+    rmmod llite || :
+#    $LCONF  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+#       --local_nid $client_HOST --profile client_facet --mount $MOUNT
     stop mds ${FORCE} $MDSLCONFARGS
     stop ost ${FORCE} --dump cleanup.log
 }
@@ -90,8 +92,14 @@ start ost --reformat $OSTLCONFARGS
 start mds $MDSLCONFARGS --reformat
 
 # 0-conf client
-$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
-    --local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
+[ -d $MOUNT ] || mkdir /mnt/lustre
+insmod ../llite/llite.o || :
+../utils/lctl modules > /r/tmp/ogdb-`hostname`
+cp ../utils/llmount /sbin/mount.lustre
+mount -t lustre $mds_HOST:/mds1/client_facet $MOUNT
+
+#$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+#    --local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
 
 echo $TIMEOUT > /proc/sys/lustre/timeout
 echo $UPCALL > /proc/sys/lustre/upcall