[ -z "${REQS}" ] && REQS=512
[ -z "${PORTS}" ] && PORTS=16
[ -z "${IMAGES}" ] && IMAGES="/home/user/archip/xseg/peers/user/foo"
- [ -z "${MAPS}" ] && IMAGES="/home/user/archip/xseg/peers/user/foo"
+ [ -z "${MAPS}" ] && MAPS="/home/user/archip/xseg/peers/user/foo"
[ -z "${PITHOS}" ] && PITHOS="/srv/pithos/data/blocks"
- [ -z "${PITHOSMAPS}" ] && PITHOS="/srv/pithos/data/maps"
- [ -z "${XSEG_LOGS}" ] && XSEG_LOGS="/home/user/archip/logs"
+ [ -z "${PITHOSMAPS}" ] && PITHOSMAPS="/srv/pithos/data/maps"
+ [ -z "${XSEG_LOGS}" ] && XSEG_LOGS="/home/philipgian/archip/logs"
[ -z "${DEVICE_PREFIX}" ] && DEVICE_PREFIX="/dev/xsegbd"
[ -z "${XSEGBD_SYSFS}" ] && XSEGBD_SYSFS="/sys/bus/xsegbd"
[ -z "${CHRDEV_NAME}" ] && CHRDEV_NAME="/dev/`cat /proc/devices | grep segdev | awk '{print $2}'`"
}
function spawn_pfiled {
- pgrep -f "peers/user/pfiled" || \
"${XSEG_HOME}/peers/user/pfiled" -p "$BPORT" -g "${SPEC}" -n \
${NR_OPS} "${PITHOS}" "${IMAGES}" &> "${XSEG_LOGS}/pfiled-${HOSTNAME}" &
}
+
function spawn_pfiledm {
- pgrep -f "peers/user/pfiled" || \
"${XSEG_HOME}/peers/user/pfiled" -p "$MBPORT" -g "${SPEC}" -n \
${NR_OPS} "${PITHOSMAPS}" "${MAPS}" &> "${XSEG_LOGS}/pfiledm-${HOSTNAME}" &
+}
function spawn_vlmcd {
pgrep -f "peers/user/mt-vlmcd" || \
function spawn_mapperdc {
pgrep -f "mt-mapperd" || \
- "${XSEG_HOME}/peers/user/mt-mapperd" -t 1 -p "$MPORT" -bp "$BPORT" -g "${SPEC}"\
+ "${XSEG_HOME}/peers/user/mt-mapperd" -t 1 -p "$MPORT" -bp "$BPORT" -mbp "$MBPORT" -g "${SPEC}"\
&> "${XSEG_LOGS}/mapperd-${HOSTNAME}" &
# alloc_requests "$MPORT:0" 128
}
sleep 0.5
spawn_pfiled
spawn_pfiledm
- spawn_mapperd
+ spawn_mapperdc
spawn_vlmcd
;;
stop)
//assert targetlen <= XSEG_MAX_TARGET_LEN
strncpy(buf, target, targetlen);
buf[targetlen] = 0;
- fprintf(stderr, "%s\n", buf);
r = xhash_lookup(mapper->hashmaps, (xhashidx) buf, (xhashidx *) &m);
if (r < 0)
return NULL;
goto out;
}
- fprintf(stderr, "%s\n", map->volume);
r = xhash_insert(mapper->hashmaps, (xhashidx) map->volume, (xhashidx) map);
if (r == -XHASH_ERESIZE) {
xhashidx shift = xhash_grow_size_shift(map->objects);