Git Product home page Git Product logo

tgt's Introduction

Introduction

The Linux target framework (tgt) is a user space SCSI target framework that supports the iSCSI and iSER transport protocols and that also supports multiple methods for accessing block storage. Tgt consists of user-space daemon and tools.

Currently, tgt supports the following SCSI transport protocols:

  • iSCSI software target driver for Ethernet NICs
  • iSER software target driver for Infiniband and RDMA NICs

Tgt supports the following methods for accessing local storage:

  • aio, the asynchronous I/O interface also known as libaio.
  • rdwr, smc and mmc, synchronous I/O based on the pread() and pwrite() system calls.
  • null, discards all data and reads zeroes.
  • ssc, SCSI tape support.
  • sg and bsg, SCSI pass-through.
  • glfs, the GlusterFS network filesystem.
  • rbd, Ceph's distributed-storage RADOS Block Device.
  • sheepdog, a distributed object storage system.

Tgt can emulate the following SCSI device types:

  • SBC: a virtual disk drive that can use a file to store the content.
  • SMC: a virtual media jukebox that can be controlled by the "mtx" tool.
  • MMC: a virtual DVD drive that can read DVD-ROM iso files and create burnable DVD+R. It can be combined with SMC to provide a fully operational DVD jukebox.
  • SSC: a virtual tape device (aka VTL) that can use a file to store the content.
  • OSD: a virtual object-based storage device that can use a file to store the content (in progress).

License

The code is released under the GNU General Public License version 2.

Requirements

Linux kernel version 2.6.22 or newer is recommended because tgt can get better performance with signalfd.

Target drivers have their own ways to build, configure, etc. Please find an appropriate documentation in the doc directory.

Developer Notes

The central communication channel for tgt development is the mailing list ([email protected]).

First, please read the following documents (in short, follow Linux kernel development rules):

https://www.kernel.org/doc/Documentation/CodingStyle https://www.kernel.org/doc/Documentation/SubmittingPatches

Then, check your patches with the patch style checker prior to submission (scripts/checkpatch.pl) like the following example.

fujita@arbre:~/git/tgt$ ./scripts/checkpatch.pl ~/0001-add-bidi-support.patch Your patch has no obvious style problems and is ready for submission.

tgt's People

Contributors

albertpauw avatar apoikos avatar bk201 avatar bvanassche avatar chandra2 avatar ddiss avatar fujita avatar gaoxingguang avatar gentoo90 avatar gonzoleeman avatar konis avatar liangry avatar markh794 avatar mitake avatar nablio3000 avatar neheb avatar nezhinsky avatar ogerlitz avatar pbatard avatar pizhenwei avatar pryan0 avatar qsorix avatar redlicha avatar richardsharpe avatar roidayan avatar sahlberg avatar shlomopongartz avatar tishizaki avatar vbkesha avatar x2c3z4 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.