Re: rtsadmin documentation build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Nick,

the update version installs fine now.

The error handling in tcm_node is still not very nice, though.

If either configfs is not mounted, or the target core module isn't
loadded it gives this backtrace:

qemu1:~# tcm_node 
Traceback (most recent call last):
  File "/usr/sbin/tcm_node", line 739, in <module>
    main()
  File "/usr/sbin/tcm_node", line 715, in main
    parser = OptionParser(version=tcm_version())
  File "/usr/sbin/tcm_node", line 603, in tcm_version
    return tcm_read("/sys/kernel/config/target/version").strip()
  File "/usr/sbin/tcm_node", line 26, in tcm_read
    with open(filename) as f:
IOError: [Errno 2] No such file or directory: '/sys/kernel/config/target/version

It really should complain either about the lack of mounted configs,
or about the lack of the target/ directory inside it.  I'm completely
lost as far as python is concerned, otherwise I would have provided
the easy patches for it.
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux