~ubuntu-branches/ubuntu/precise/tgt/precise

« back to all changes in this revision

Viewing changes to usr/mgmt.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-02-08 10:31:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208103104-oots1az6acnkfvuw
Tags: 1:1.0.13-0ubuntu1
* New upstream release.
* debian/patches/make-tgt-setup-lun-executable: Dropped no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
 
260
260
        switch (req->op) {
261
261
        case OP_UPDATE:
262
 
                if (tgt_drivers[lld_no]->update)
 
262
                if (!strncmp(mtask->buf, "debug=", 6)) {
 
263
                        if (!strncmp(mtask->buf+6, "on", 2)) {
 
264
                                is_debug = 1;
 
265
                                err = 0;
 
266
                        } else if (!strncmp(mtask->buf+6, "off", 3)) {
 
267
                                is_debug = 0;
 
268
                                err = 0;
 
269
                        }
 
270
                        if (!err)
 
271
                                eprintf("set debug to: %d\n", is_debug);
 
272
                } else if (tgt_drivers[lld_no]->update)
263
273
                        err = tgt_drivers[lld_no]->update(req->mode, req->op,
264
274
                                                          req->tid,
265
275
                                                          req->sid, req->lun,