makes this code unnecessary since the node is returned
even if the backing file server is known to be down.
Since the code path is unused it should be removed.
From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
2009-12-10 Christos Zoulas <christos@zoulas.com>
+
+ * In the previous commit we've already made a change that
+ makes this code unnecessary since the node is returned
+ even if the backing file server is known to be down.
+ Since the code path is unused it should be removed.
+ From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
+
* amfs_generic_lookup_child() tries to find an alternate
file server if it detects that the current one is down.
However, in the comparison used to decide if a possible
return NULL;
}
- /*
- * Already mounted but known to be down:
- * check if we have any alternatives to mount
- */
- if (mp_error == 0) {
- am_loc **alp;
- for (alp = al_array; *alp; alp++)
- if (*alp != new_mp->am_al && (*alp)->al_mnt != new_mp->am_al->al_mnt)
- break;
- if (*alp != NULL) {
- /*
- * we found an alternative, so try mounting again.
- */
- *error_return = -1;
- } else {
- for (alp = al_array; *alp; alp++)
- free_loc(*alp);
- XFREE(al_array);
- if (new_mp->am_flags & AMF_SOFTLOOKUP) {
- ereturn(EIO);
- } else {
- *error_return = 0;
- return new_mp;
- }
- }
- }
-
/* store the array inside the am_node */
new_mp->am_alarray = al_array;