From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 10 19:17:33 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A17966D for ; Thu, 10 Jul 2014 19:17:33 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 816632ADB for ; Thu, 10 Jul 2014 19:17:33 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s6AJHXc7035804 for ; Thu, 10 Jul 2014 19:17:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191781] [patch] multimedia/webcamd - much improved rc.d script Date: Thu, 10 Jul 2014 19:17:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dreamcat4@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 19:17:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191781 --- Comment #12 from dreamcat4@gmail.com --- (In reply to dreamcat4 from comment #11) > A possible way to make simpler for user, is to automatically generate and > keep some local cache file. Which specify the list of all detected USB > serial numbers, just to know their relative positions. Then the /dev/ > ordering is kept consistent. But the user never to need to know or find out > the USB device serial numbers. For this way quoted ^^, maintaining a cache file not necessary. If we just sort on the list of found USB serial numbers low-high. Then the lowest value USB serial number get loaded first, then the next one, etc. In theory that should keep a consistent ordering for hot-swapping identical devices. But for that method to work, each USB serial numbers must actually be unique, random, or not often duplicated. Perhaps that fact may depend a lot on the device manufacturer. I don't know if it is universally true for all cases. > > ** The USB Serial number can be grepped for, individually 1 device, with the > following command: > > usbconfig -u 7 -a 2 dump_device_desc > There is also a small time penalty, to run this command 1x time for each detected device. > > > --HPS -- You are receiving this mail because: You are the assignee for the bug.