Bug 215179 - bin/ls/ls_tests:o_flag fails with a ZFS /tmp
Summary: bin/ls/ls_tests:o_flag fails with a ZFS /tmp
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Alan Somers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-09 18:15 UTC by Alan Somers
Modified: 2017-04-24 16:24 UTC (History)
1 user (show)

See Also:
asomers: mfc-stable11+
asomers: mfc-stable10-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer 2016-12-09 18:15:00 UTC
Unlike UFS, ZFS sets the uarch flag automatically whenever a file is modified.  The test should be modified to explicitly clear it.
Comment 1 commit-hook freebsd_committer 2016-12-15 16:14:08 UTC
A commit references this bug:

Author: asomers
Date: Thu Dec 15 16:13:52 UTC 2016
New revision: 310118
URL: https://svnweb.freebsd.org/changeset/base/310118

Log:
  Fix ls_tests:o_flag with ZFS TMPDIR

  Unlike UFS or TMPFS, ZFS sets uarch automatically whenever a file is
  updated. The test must explicitly clear uarch to be portable across
  filesystems. Also, it doesn't need to run as root.

  PR:		215179
  MFC after:	4 weeks
  Sponsored by:	Spectra Logic Corp
  Differential Revision:	https://reviews.freebsd.org/D8741

Changes:
  head/bin/ls/tests/ls_tests.sh
Comment 2 Alan Somers freebsd_committer 2017-04-24 16:24:14 UTC
MFCed to stable/11 by r310118