]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298483, r298744, r299085, r299087, and r300747 to usr.sbin/extattr
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Jun 2016 17:22:15 +0000 (17:22 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Jun 2016 17:22:15 +0000 (17:22 +0000)
commit3c6ff28fcfdc88e5568c2235ba8c0d5de8ae57b2
treeee0ccbe8b73cb18e4e1909b2fc47ef932bcb4208
parent5d95a6fea4681b71854d79637742a844db2a5237
MFC r298483, r298744, r299085, r299087, and r300747 to usr.sbin/extattr

r300747 | asomers | 2016-05-26 08:26:49 -0600 (Thu, 26 May 2016) | 8 lines

rmextattr(8) man page clarifications regarding -qq

r299087 | asomers | 2016-05-04 15:07:30 -0600 (Wed, 04 May 2016) | 13 lines

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

r299085 | asomers | 2016-05-04 14:20:55 -0600 (Wed, 04 May 2016) | 30 lines

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.

r298744 | asomers | 2016-04-28 09:13:50 -0600 (Thu, 28 Apr 2016) | 11 lines

Add PACKAGE fields to usr.sbin/extattr/tests/Makefile

usr.sbin/extattr/tests/Makefile
        Add boiler plate required by 298107 but omitted by 298483.  These
        two changes passed through CR in parallel.  I think this should get
        the full test suite running in Jenkins again.

r298483 | asomers | 2016-04-22 11:02:47 -0600 (Fri, 22 Apr 2016) | 10 lines

Add ATF tests for usr.sbin/extattr

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

Sponsored by: Spectra Logic Corp

git-svn-id: svn://svn.freebsd.org/base/stable/10@301145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/extattr/Makefile
usr.sbin/extattr/rmextattr.8
usr.sbin/extattr/rmextattr.c
usr.sbin/extattr/tests/Makefile [new file with mode: 0644]
usr.sbin/extattr/tests/extattr_test.sh [new file with mode: 0755]