1. 22 Feb, 2024 1 commit
  2. 16 Feb, 2024 2 commits
  3. 15 Feb, 2024 15 commits
  4. 13 Feb, 2024 2 commits
  5. 12 Feb, 2024 1 commit
  6. 09 Feb, 2024 1 commit
  7. 08 Feb, 2024 3 commits
    • Shawn Bayern's avatar
      Update zfs-snapshot.8 · d0d27332
      Shawn Bayern authored
      
      Fixes a small inaccuracy in the description of snapshot
      atomicity
      
      zfs-snapshot(8) appears to contain a small error.  The existing
      version reads "Snapshots are taken atomically, so that all
      snapshots correspond to the same moment in time."  Per
      zfs_main.c, which in do_snapshot() simply loops over argv, this
      does not appear to be correct when multiple snapshots are
      specified explicitly on the command line.  I believe the intent
      of the man page was to say that *recursive* snapshots are all
      created atomically.
      
      This proposed change fixes that error.  Because the existing
      statement may confuse some readers anyway, the commit also also
      adds a small amount of general explanatory information that may
      be helpful.
      
      The change also adds an introductory sentence that summarizes
      what 'zfs snapshot' does in the first place.  In that sentence,
      the text "different datasets" is intended to indicate that
      (again per the code) the same dataset cannot be specified
      multiple times on the command line.
      Reviewed-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
      Signed-off-by: default avatarShawn Bayern <sbayern@law.fsu.edu>
      Closes #15857 
      d0d27332
    • Rob N's avatar
      zfs list: add '-t fs' and '-t vol' options · a5a72544
      Rob N authored
      Because "filesystem" and "volume" are just too long!
      
      Sponsored-by: https://despairlabs.com/sponsor/
      
      Reviewed-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
      Signed-off-by: default avatarRob Norris <robn@despairlabs.com>
      Closes #15864 
      a5a72544
    • Don Brady's avatar
      Add slow disk diagnosis to ZED · cbe88229
      Don Brady authored
      
      Slow disk response times can be indicative of a failing drive. ZFS
      currently tracks slow I/Os (slower than zio_slow_io_ms) and generates
      events (ereport.fs.zfs.delay).  However, no action is taken by ZED,
      like is done for checksum or I/O errors.  This change adds slow disk
      diagnosis to ZED which is opt-in using new VDEV properties:
        VDEV_PROP_SLOW_IO_N
        VDEV_PROP_SLOW_IO_T
      
      If multiple VDEVs in a pool are undergoing slow I/Os, then it skips
      the zpool_vdev_degrade().
      
      Sponsored-By: OpenDrives Inc.
      Sponsored-By: Klara Inc.
      Reviewed-by: default avatarTony Hutter <hutter2@llnl.gov>
      Reviewed-by: default avatarAllan Jude <allan@klarasystems.com>
      Reviewed-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
      Co-authored-by: default avatarRob Wing <rob.wing@klarasystems.com>
      Signed-off-by: default avatarDon Brady <don.brady@klarasystems.com>
      Closes #15469 
      cbe88229
  8. 07 Feb, 2024 2 commits
  9. 06 Feb, 2024 1 commit
    • Brian Behlendorf's avatar
      BRT: Fix FICLONE/FICLONERANGE shortened copy · 6dccdf50
      Brian Behlendorf authored
      
      On Linux the ioctl_ficlonerange() and ioctl_ficlone() system calls
      are expected to either fully clone the specified range or return an
      error.  The range may be for an entire file.  While internally ZFS
      supports cloning partial ranges there's no way to return the length
      cloned to the caller so we need to make this all or nothing.
      
      As part of this change support for the REMAP_FILE_CAN_SHORTEN flag
      has been added.  When REMAP_FILE_CAN_SHORTEN is set zfs_clone_range()
      will return a shortened range when encountering pending dirty records.
      When it's clear zfs_clone_range() will block and wait for the records
      to be written out allowing the blocks to be cloned.
      
      Furthermore, the file range lock is held over the region being cloned
      to prevent it from being modified while cloning.  This doesn't quite
      provide an atomic semantics since if an error is encountered only a
      portion of the range may be cloned.  This will be converted to an
      error if REMAP_FILE_CAN_SHORTEN was not provided and returned to the
      caller.  However, the destination file range is left in an undefined
      state.
      
      A test case has been added which exercises this functionality by
      verifying that `cp --reflink=never|auto|always` works correctly.
      Reviewed-by: default avatarAlexander Motin <mav@FreeBSD.org>
      Signed-off-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
      Closes #15728
      Closes #15842
      6dccdf50
  10. 05 Feb, 2024 1 commit
  11. 02 Feb, 2024 1 commit
  12. 29 Jan, 2024 10 commits