Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openzfs/zfs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: rootfs/zfs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 24 files changed
  • 1 contributor

Commits on May 28, 2014

  1. This is iSCSI sharing for ZoL (shareiscsi).

    * Supports the following iSCSI implementations (in this order of discovery):
      + IET		http://iscsitarget.sourceforge.net
      + STGT	http://stgt.berlios.de
      + SCST	http://scst.sourceforge.net
        + Requires that SCST was compiled with /sys support (the default).
    * Will refuse to unshares an active target (one with sessions).
    * Supports the following options to the 'shareiscsi' property:
      + name/iqn	Full iSCSI Qualified Name (IQN), including identifier.
    		This is generated by iscsi_generate_target():
    		+ Uses the content of an optional /etc/iscsi_target_id file:
    		  Example: iqn.YYYY-MM.tld.domain
    		+ If this file doesn't exist, it uses todays year, month and
    		  domain name to generate the iqn.
    		+ The dataset name is appended at the end of the iqn, with
    		  slashes replaced with dots.
    		  => <iqn>:<dataset>
      + lun		LUN (0-16384)
    		Default: 0 (1 for STGT)
      + type	Share mode (fileio, blockio, nullio, disk, tape)
    		STGT: ssc, pt
    		Default: blockio (disk for STGT)
      + iomode	IO mode (wb, wt, ro)
    		STGT: rdwr, aio, mmap, sg, ssc
    		Default: wt (rdwr for STGT)
      + blocksize	Logical block size (512, 1024, 2048, 4096)
    		Default: Volume blocksize, 4096 if not usable.
    		NOTE: Currently not supported for STGT (doesn't seem to be
    		      an option for it in tgtadm).
    * If not called with a 'name/iqn' value, then force setting it.
      This so that the IQN doesn't change every month (when it is
      regenerated again). It will be generated by iscsi_generate_target()
      (see above).
    
    NOTE:
    + Moved nfs.c:foreach_nfs_shareopt() to libshare.c:foreach_shareopt()
      so that it can be (re)used in smb.c and iscsi.c.
    + Use the list_{create,insert}() etc for keeping tabs of the linked lists
      instead of using a home-made version.
    + A half second delay had to be added in lib/libzfs/libzfs_mount.c:zfs_unmount()
      after the successful unshare. This to avoid 'dataset busy' when destroying
      recursivly.
    + Fix some gcc-4.8.1 compile fixes. Thanx to munix9.
    + Fix error in manpage.
    + Don't set last char in domainname to NULL willy-nilly. Only if newline.
    + Instead of blindingly generate an IQN, use opts->name if it's set.
    FransUrbo committed May 28, 2014
    Configuration menu
    Copy the full SHA
    06f0b8d View commit details
    Browse the repository at this point in the history
  2. Misc iSCSI fixes/cleanups/attempts to get 'zfs rename' to work.

    !! Doesn't - a 'zfs rename' works, but most often than not, the rename
    !! IOCTL hangs. Not every time and not always on the first dataset being
    !! renamed... Seems a little to random to me.
    FransUrbo committed May 28, 2014
    Configuration menu
    Copy the full SHA
    5d82693 View commit details
    Browse the repository at this point in the history
Loading