MFC r343516:Fix whiteout support in find(1)find(1) ignores -type w passed to it. With this patch find(1) properlyidentifies and prints whiteouts.PR: 126384, 156703Submitted by: oleg@mamontov
MFC r343516:Fix whiteout support in find(1)find(1) ignores -type w passed to it. With this patch find(1) properlyidentifies and prints whiteouts.PR: 126384, 156703Submitted by: [email protected]
show more ...
find(1): remove empty else conditionreported by: brooks
find(1): use correct type for readlink
find(1): deLINTify
find(1): remove portability ifdefsThis code isn't designed to be particularly portable outside of FreeBSD.To be more specific it doesn't make much sense to support compilingfind(1) on VMS.
Allow compiling usr.bin/find on Linux and MacWhen building FreeBSD the makefiles invoke find with various flags such as`-s` that aren't supported in the native /usr/bin/find. To fix this Ibuild t
Allow compiling usr.bin/find on Linux and MacWhen building FreeBSD the makefiles invoke find with various flags such as`-s` that aren't supported in the native /usr/bin/find. To fix this Ibuild the FreeBSD version of find and use that when crossbuilding.Inserting lots if #ifdefs in the code is rather ugly but I don't see abetter solution.Reviewed By: brooks (mentor)Approved By: jhb (mentor)Differential Revision: https://reviews.freebsd.org/D13306
find: Speed up tests by using touch -d instead of sleep for timestampsI have verified that the tests still detect the absence of the r327362 fix.
find: Link tests to the build
find(1): Fix -newer and -samefile to conform to POSIX[0]By default, or with the -P flag, find(1) should evaluate paths "physically."For symlinks, this means using the link itself instead of the ta
find(1): Fix -newer and -samefile to conform to POSIX[0]By default, or with the -P flag, find(1) should evaluate paths "physically."For symlinks, this means using the link itself instead of the target.Historically (since the import of BSD 4.4-lite from CSRG), find(1) hasfailed to refer to the link itself, at least for -newer and -samefile.[0]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.htmlPR: 222698Reported by: Harald Schmalzbauer <bugzilla.freebsd AT omnilan.de>Sponsored by: Dell EMC Isilon
find(1): remove unused variable
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
find(1): Don't treat statfs() error as fatal in f_fstype, which can happenwhen a directory is removed in the middle of find.Instead of a full err(), allow find to continue, plus print a warning wi
find(1): Don't treat statfs() error as fatal in f_fstype, which can happenwhen a directory is removed in the middle of find.Instead of a full err(), allow find to continue, plus print a warning withexitstatus set when appropriate.Reported by: 100.chksetuid via gordonReviewed by: jillesMFC after: 1 monthDifferential Revision: https://reviews.freebsd.org/D13024
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <[email protected]>Pull Request: https://github.com/freebsd/freebsd/pull/96
Improve wording when describing -mmin.PR: 215922Submitted by: danielsh AT apache DOT orgApproved by: bcr (mentor)MFC after: 5 daysDifferential Revision: https://reviews.freebsd.org/D9313
Use type-independent formats for printing nlink_t and ino_t.Extracted from: ino64 work by gleb, mckusickDiscussed with: mckusickSponsored by: The FreeBSD FoundationMFC after: 1 week
Use NULL instead of 0 for pointers.MFC after: 2 weeks.
DIRDEPS_BUILD: Regenerate without local dependencies.These are no longer needed after the recent 'beforebuild: depend' changesand hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports
DIRDEPS_BUILD: Regenerate without local dependencies.These are no longer needed after the recent 'beforebuild: depend' changesand hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supportsskipping 'make depend'.Sponsored by: EMC / Isilon Storage Division
find: Fix segfault with very long path in -exec/-ok ... {} \;.If the resulting argument is longer than MAXPATHLEN, realloc() was called toextend the space, but the new pointer was not correctly st
find: Fix segfault with very long path in -exec/-ok ... {} \;.If the resulting argument is longer than MAXPATHLEN, realloc() was called toextend the space, but the new pointer was not correctly stored.Different from what OpenBSD has done, rewrite brace_subst() to calculate thenecessary space first and realloc() at most once.As before, the e_len fields are not updated in case of a realloc.Therefore, a following long argument will do another realloc.PR: 201750MFC after: 1 week
new depends
Fix typo when deregistering the VLAN unconfig event handlerSubmitted by: Masao Uebayashi <[email protected]>MFC after: 3 days
dirdeps.mk now sets DEP_RELDIR
Fix a lock up where we enter swapper() with interrupts disabled.In smp_rendezvous_cpus we expect to wait for all cpus to entersmp_rendezvous_action. If we call this holding a proc lock swapper may
Fix a lock up where we enter swapper() with interrupts disabled.In smp_rendezvous_cpus we expect to wait for all cpus to entersmp_rendezvous_action. If we call this holding a proc lock swapper mayattempt to also lock it, however as interrupts are disabled the cpu neverhandles the ipi. Because smp_rendezvous_action waits for all signaledcpus before contining it may get caught waiting for the cpu running swapperas the proc mutex will be unlocked after smp_rendezvous_cpus finishes.The fix is to enable interrupts in the configure stage as we should bedoing.MFC after: 1 week
Make vfs.zfs.max_recordsize read-write at runtime.MFC after: 2 weeks
Updated dependencies
123456789