History log of /freebsd-current/usr.sbin/extattr/tests/extattr_test.sh
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# b21ae0ff 13-May-2020 Conrad Meyer <cem@FreeBSD.org>

vfs_extattr: Allow extattr names up to the full max

Extattr names are allowed to be 255 bytes -- not 254 bytes plus trailing
NUL. Provide a 256 buffer so that copyinstr() has room for the trailing
NUL.

Re-enable test for maximal name lengths.

PR: 208965
Reported by: asomers
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D24584


# ba8c8a0c 04-Apr-2017 Enji Cooper <ngie@FreeBSD.org>

Don't assume NAME_MAX is 255

Query the filesystem limit via getconf(3) instead

MFC after: 2 months
Sponsored by: Dell EMC Isilon


# d2d2a79c 04-Apr-2017 Enji Cooper <ngie@FreeBSD.org>

Clean up more trailing whitespace in the licensing tort that
happened to be spaces, not tabs

MFC after: 2 months
Sponsored by: Dell EMC Isilon


# 9bf37782 04-Apr-2017 Enji Cooper <ngie@FreeBSD.org>

Clean up trailing whitespace

MFC after: 2 months
Sponsored by: Dell EMC Isilon


# d68da43b 21-Sep-2016 Ruslan Bukin <br@FreeBSD.org>

Disable extattr test on UFS1.

This test supports native extended attributes only (e.g. UFS2)

Reviewed by: asomers, ngie
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
Differential Revision: https://reviews.freebsd.org/D7981


# 9be960da 13-Jun-2016 Alan Somers <asomers@FreeBSD.org>

Fix usr.sbin/extattr testcases on tmpfs

Skip the usr.sbin/extattr testscases if $TMPDIR is tmpfs, which doesn't
support extended attributes

PR: 210184
Reported by: ngie
Reviewed by: ngie
Approved by: re (glebius)
MFC after: 4 weeks
Differential Revision: https://reviews.freebsd.org/D6802
Sponsored by: Spectra Logic Corp


# 79e29f95 04-May-2016 Alan Somers <asomers@FreeBSD.org>

Fix "getextattr -x" with non-ascii attribute values

extattr/rmextattr.c
When printing hex output, treat all attribute values as unsigned
char arrays instead of sign extending them to 32 bit values.

extattr/tests/extattr_test.sh
Add a regression test

PR: 209039
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp


# c29930cf 04-May-2016 Alan Somers <asomers@FreeBSD.org>

Allow setextattr(8) to take attribute values from stdin

Add the -i option to setextattr. This option allow extended attribute data
to be provided via stdin. Add a -qq option to getextattr, which omits the
trailing newline. Together these options can be used to work with extended
attributes whose values are large and/or binary.

usr.sbin/extattr/Makefile:
Link against libsbuf which is used for processing stdin data.

usr.sbin/extattr/rmextattr.8:
Document setextattr's -i option, getextattr's -qq option, and remove
the BUG about setextattr only being useful for strings.

usr.sbin/extattr/rmextattr.c:
For setextattr operations, buffer attribute data in an sbuf. If -i
is specified, pull the data from stdin, otherwise from the
appropriate argurment.

Update usage text and argument validation code for setextattr's -i
option.

usr.sbin/extattr/tests/extattr_test.sh
Add tests for -q and -i.

Reviewed by: wblock (manpage)
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6090


# 83e2bfb6 22-Apr-2016 Alan Somers <asomers@FreeBSD.org>

Add ATF tests for usr.sbin/extattr

Add ATF tests for the existing behavior of setextattr, rmextattr, lsextattr,
and getextattr.

Reviewed by: ngie
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D5889