On Sat, 21 Feb 2009 13:15:05 +0100 Albert Pauw <albert.pauw at gmail.com> wrote: > here's my test. It seems that the tape-file is not updated at all. > > here is what I have/did: > > the relevant part of /etc/tgt/targets.conf: I realized that tgt-admin can't set up ssc properly. You need to use tgtadm to set up ssc. Can you try this patch? This adds tricks to tgtadm that makes tgt-admin set up ssc properly. diff --git a/usr/tgtadm.c b/usr/tgtadm.c index 9a60215..6280c99 100644 --- a/usr/tgtadm.c +++ b/usr/tgtadm.c @@ -721,7 +721,11 @@ int main(int argc, char **argv) if (path) shprintf(total, params, rest, "%spath=%s", rest == BUFSIZE ? "" : ",", path); - if (bstype) + + if (req->device_type == TYPE_TAPE) + shprintf(total, params, rest, "%sbstype=%s", + rest == BUFSIZE ? "" : ",", "ssc"); + else if (bstype) shprintf(total, params, rest, "%sbstype=%s", rest == BUFSIZE ? "" : ",", bstype); if (targetname) -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html |