misc/157491: update ls/rm/mv/cp tools to be able to handle large amount of files

vermaden vermaden at interia.pl
Wed Jun 1 08:20:11 UTC 2011


>Number:         157491
>Category:       misc
>Synopsis:       update ls/rm/mv/cp tools to be able to handle large amount of files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 01 08:20:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     vermaden
>Release:        8.2-RELENG_8-20110411-JPSNAP
>Organization:
>Environment:
FreeBSD e6400 8.2-RELENG_8-20110411-JPSNAP FreeBSD 8.2-RELENG_8-20110411-JPSNAP #0: Mon Apr 11 04:35:01 UTC 2011     root at build-amd64-fbsd.allbsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The 'basic' tools like ls/mv/cp/rm are not able to handle large amount of files:

# ls /var/db/portsnap/files | wc -l
   22682

# ls /var/db/portsnap/files/*
zsh: argument list too long: ls

# mv /var/db/portsnap/files/* /tmp
zsh: argument list too long: mv

>How-To-Repeat:
These for about 22000 files and more:

ls /var/db/portsnap/files/*
mv /var/db/portsnap/files/* /tmp
>Fix:
Increase these tools limits.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list