From owner-freebsd-hackers@freebsd.org Mon Dec 14 15:03:00 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB6CEA43489 for ; Mon, 14 Dec 2015 15:03:00 +0000 (UTC) (envelope-from egoitz@ramattack.net) Received: from cu01078b.smtpx.saremail.com (cu01078b.smtpx.saremail.com [195.16.151.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 92C5D11D1 for ; Mon, 14 Dec 2015 15:02:59 +0000 (UTC) (envelope-from egoitz@ramattack.net) Received: from [172.16.2.46] (izaro.sarenet.es [192.148.167.11]) by proxypop01.sare.net (Postfix) with ESMTPSA id 40D029DEC90 for ; Mon, 14 Dec 2015 15:53:15 +0100 (CET) From: Egoitz Aurrekoetxea Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: FreeBSD-update server Message-Id: <49B2EF42-060A-4E64-B86D-B4392D3DA8DE@ramattack.net> Date: Mon, 14 Dec 2015 15:53:14 +0100 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 15:03:00 -0000 Hi all, Don=E2=80=99t really know if this is the proper place for asking it=E2=80=A6= but=E2=80=A6. how a FreeBSD-Update server can be created?.=20 I=E2=80=99m interested in that all machines for a concreted purpose=E2=80=A6= . to have always the same patch level and release of the OS.=20 Is it explained anyway how to create a freebsd-update server with the = updates you allow to be installed (till you rebuild packages and so) in = these commented machines?. Best regards,= From owner-freebsd-hackers@freebsd.org Mon Dec 14 15:14:29 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F30CA43DB2 for ; Mon, 14 Dec 2015 15:14:29 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 41D4719DF for ; Mon, 14 Dec 2015 15:14:29 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id tBEFEMar007868 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 14 Dec 2015 08:14:22 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id tBEFELK6007865; Mon, 14 Dec 2015 08:14:22 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 14 Dec 2015 08:14:21 -0700 (MST) From: Warren Block To: Egoitz Aurrekoetxea cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD-update server In-Reply-To: <49B2EF42-060A-4E64-B86D-B4392D3DA8DE@ramattack.net> Message-ID: References: <49B2EF42-060A-4E64-B86D-B4392D3DA8DE@ramattack.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 14 Dec 2015 08:14:22 -0700 (MST) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 15:14:29 -0000 On Mon, 14 Dec 2015, Egoitz Aurrekoetxea wrote: > Hi all, > > Don’t really know if this is the proper place for asking it… but…. how a FreeBSD-Update server can be created?. > > I’m interested in that all machines for a concreted purpose…. to have always the same patch level and release of the OS. > > Is it explained anyway how to create a freebsd-update server with the updates you allow to be installed (till you rebuild packages and so) in these commented machines?. There is Jason Helfman's article: https://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/index.html From owner-freebsd-hackers@freebsd.org Mon Dec 14 15:26:04 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 886DCA444CD for ; Mon, 14 Dec 2015 15:26:04 +0000 (UTC) (envelope-from egoitz@ramattack.net) Received: from cu01078b.smtpx.saremail.com (cu01078b.smtpx.saremail.com [195.16.151.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D5A11F99 for ; Mon, 14 Dec 2015 15:26:03 +0000 (UTC) (envelope-from egoitz@ramattack.net) Received: from [172.16.2.46] (izaro.sarenet.es [192.148.167.11]) by proxypop01.sare.net (Postfix) with ESMTPSA id E7B9F9DEABE; Mon, 14 Dec 2015 16:26:01 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: FreeBSD-update server From: Egoitz Aurrekoetxea In-Reply-To: Date: Mon, 14 Dec 2015 16:26:01 +0100 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <72516868-C701-4F40-AFDF-B13152685A1B@ramattack.net> References: <49B2EF42-060A-4E64-B86D-B4392D3DA8DE@ramattack.net> To: Warren Block X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 15:26:04 -0000 Many Thanks Warren!! > El 14 dic 2015, a las 16:14, Warren Block = escribi=C3=B3: >=20 > On Mon, 14 Dec 2015, Egoitz Aurrekoetxea wrote: >=20 >> Hi all, >>=20 >> Don=E2=80=99t really know if this is the proper place for asking = it=E2=80=A6 but=E2=80=A6. how a FreeBSD-Update server can be created?. >>=20 >> I=E2=80=99m interested in that all machines for a concreted = purpose=E2=80=A6. to have always the same patch level and release of the = OS. >>=20 >> Is it explained anyway how to create a freebsd-update server with the = updates you allow to be installed (till you rebuild packages and so) in = these commented machines?. >=20 > There is Jason Helfman's article: > = https://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server= /index.html From owner-freebsd-hackers@freebsd.org Mon Dec 14 20:52:54 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 659C5A4462B for ; Mon, 14 Dec 2015 20:52:54 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 18D2313C4 for ; Mon, 14 Dec 2015 20:52:54 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by wmpp66 with SMTP id p66so77782860wmp.1 for ; Mon, 14 Dec 2015 12:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=K18ujqcA6wFxb7ajc4Xag2HYLkJMW3RmTtO4fuog1H0=; b=qP1svRpbIlOEVxOKfc1ZFvDIGxmYLRtPuruk4OZbHckkpFvfLz4Rs9mEOd7Po2fCmV 7gm3IyiP1abpGKHTaryO/FVjOwArVbtVtprjRoe+bv1F7cxBQCY7k+VPSJL8Ge36wufN CGYV6bDGaX7cNLPAfIg6IRYaoBlAkjFJycCKLXg3PlmlA/Jd7etR51EM6I2weABKYjfB +sq9lMlGIOJjMnycOTtPlUVo4xcz86Bg/f2HtIPDKU9ga50AUuTOzmpiiuZ++Oi87saS 115g2v92DE+IQMcxm20XuF0Y+XUeQCbnFeNg5QQ5Ij8GvUtrFePqInEN2SVl/u2UKva+ 3NNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=K18ujqcA6wFxb7ajc4Xag2HYLkJMW3RmTtO4fuog1H0=; b=F04bBUMSD1bHhvsGP9kRS+v+BGWfhYrde+JoNSpO+6V3fg+Vbfk/EmM4wpI0xla9W6 rYojO0pQAyuRErAV7MSwBeSg7PNIc+diSop6wEtqq8vT1Mq0iVHzRZKMsh0xORldgzda oz/BkHjmIJwuO61RvuUVusBfDRWOEFuJRufzHZt8nqjgX5N+1xerZzzXmkJEHR5NvTRe 0Kb6sW7GtT/sad0bNmK0urydrXV0dgSnVCV2YXO20OWrzE6VXYJfv3o1ytsUEOpsEX1w sIjo/EHg/YaxeOUU0E/HrgFjrTxxlnd/3gpahgD4vfJcUybeK6JDuixAydzS90vq3ncy EuLw== X-Gm-Message-State: ALoCoQn2FZEVqXYLM5llvRn9C1yw13VgpRLn4z4L4YwGbg8dVObPmpYd89mKxJiN6MmJRUbqvss7lfUJabytGu4ifOQoE5bzbihqMrXaG5EzewsJGKdo4e4= MIME-Version: 1.0 X-Received: by 10.28.144.139 with SMTP id s133mr238425wmd.90.1450126372088; Mon, 14 Dec 2015 12:52:52 -0800 (PST) Sender: sobomax@sippysoft.com Received: by 10.27.39.135 with HTTP; Mon, 14 Dec 2015 12:52:52 -0800 (PST) Date: Mon, 14 Dec 2015 12:52:52 -0800 X-Google-Sender-Auth: QaHWmWzmJCHZLzcT78C8fbHBAN4 Message-ID: Subject: Initiate TRIM/DELETE to a range of blocks from userland? From: Maxim Sobolev To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 20:52:54 -0000 Hi guys, let's say I have a raw device (e.g. "ada1") and I want to generate BIO_DELETE to a range of offsets on that device. Is there any way to do it now, and if not, what do you think would be the most proper way to get something like this implemented? New ioctl and some new flag for the dd(1)? From owner-freebsd-hackers@freebsd.org Mon Dec 14 20:59:08 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24BFAA44AB2 for ; Mon, 14 Dec 2015 20:59:08 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA4BC1A1D for ; Mon, 14 Dec 2015 20:59:07 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wm0-x22c.google.com with SMTP id n186so65622261wmn.0 for ; Mon, 14 Dec 2015 12:59:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=x+ByrY7f8wfkPJo+TVRbaMzDxvTfJfHH141WFkH4g+4=; b=HcRbBUDIOBwbrKuoEzmxfZrKJPYlBoGhDGIrqXsf+WswH87zjSxflOD1TI4KoseNtc UZwgXmZG8C3BbvaDxEgT/0uAddiu9MQvo2WjJ5s7aB2c2vtcysB2C8idu8AzafZ8GMpG zlm8QKjZQ+TtYfhhbWBUpHB/Bna1w2+pEzfsM2C9WssOMSRdU//wYUu+aQc6VcG4fHws qUnlFFkDo62yGEQ8KVjyrP2xQ4CRZeJA2w82sy1PREijWJIp+Vf2Vt/584TvGLVQ8Mzl 2tcQPQVAIDP25a/lp2AIRRPBAFHW5yRd97B4t9jQiLQUZbUi3ILK9cNM1p1AGcA/xeA0 +KUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=x+ByrY7f8wfkPJo+TVRbaMzDxvTfJfHH141WFkH4g+4=; b=NOEaB0f922h3djjOzTdCKDhmBPBVkZb1fADbH1EkycMnZd+s9oybWBaHWian/79hZC eFWODXQj0dI2i3KB3iKjeyq93KH9slpoveSn9MAeSq5pmrlUWY+RoY84HHvsAwvHje0E kV+b185vyXtLe3dbOXA2fOr8aUcaqLvwrNQBaAkFeIzx0KmJnJZoawy+0g4Fw3c737be PMW7G60OMG22eoARWZAapn9mszyPsZdkkleXQ2Ehz3jlwpk3PjOQSlYK6mNppmTRA4Y4 mNZlBwj0egk3nRVLDLVRT8rASnJePBj5JWH+oZUvqoy2OQibD+vRgF0ja6RS8UnGNSSV jaEw== X-Gm-Message-State: ALoCoQnBahD44nfOm8EonEaJ5Bl+ZJ94QoggEBPNoLH4yCmqgUJh8TkLfTl8g2sfcAZlyrMsXkVlMUcMjvWKhFq/0CQp6tMFHw== X-Received: by 10.194.88.102 with SMTP id bf6mr44564767wjb.129.1450126746017; Mon, 14 Dec 2015 12:59:06 -0800 (PST) Received: from [10.10.1.58] (liv3d.labs.multiplay.co.uk. [82.69.141.171]) by smtp.gmail.com with ESMTPSA id xs9sm3880148wjc.43.2015.12.14.12.59.04 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Dec 2015 12:59:04 -0800 (PST) Subject: Re: Initiate TRIM/DELETE to a range of blocks from userland? To: freebsd-hackers@freebsd.org References: From: Steven Hartland Message-ID: <566F2D9C.5010106@multiplay.co.uk> Date: Mon, 14 Dec 2015 20:59:08 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 20:59:08 -0000 http://blog.multiplay.co.uk/dropzone/freebsd/ioctl-delete.c will do this for you. Be aware it will just do it so you can really shoot your self in the foot if your not careful. On 14/12/2015 20:52, Maxim Sobolev wrote: > Hi guys, let's say I have a raw device (e.g. "ada1") and I want to > generate BIO_DELETE to a range of offsets on that device. Is there any > way to do it now, and if not, what do you think would be the most > proper way to get something like this implemented? New ioctl and some > new flag for the dd(1)? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Mon Dec 14 21:02:02 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 872AFA44DE2 for ; Mon, 14 Dec 2015 21:02:02 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from erouter6.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C1ED1EE2 for ; Mon, 14 Dec 2015 21:02:01 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Mon, 14 Dec 2015 21:01:56 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id tBEL1xEj019015; Mon, 14 Dec 2015 14:01:59 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1450126918.25138.17.camel@freebsd.org> Subject: Re: Initiate TRIM/DELETE to a range of blocks from userland? From: Ian Lepore To: Maxim Sobolev , freebsd-hackers@freebsd.org Date: Mon, 14 Dec 2015 14:01:58 -0700 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 21:02:02 -0000 On Mon, 2015-12-14 at 12:52 -0800, Maxim Sobolev wrote: > Hi guys, let's say I have a raw device (e.g. "ada1") and I want to > generate BIO_DELETE to a range of offsets on that device. Is there > any > way to do it now, and if not, what do you think would be the most > proper way to get something like this implemented? New ioctl and some > new flag for the dd(1)? Looks like there's already an ioctl, DIOCGDELETE in sys/disk.h, used by newfs -E via the berase() routine in libufs. -- Ian From owner-freebsd-hackers@freebsd.org Mon Dec 14 21:54:58 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52CC1A44D22 for ; Mon, 14 Dec 2015 21:54:58 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E04CE11C0 for ; Mon, 14 Dec 2015 21:54:57 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-wm0-x22d.google.com with SMTP id p66so64827208wmp.0 for ; Mon, 14 Dec 2015 13:54:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=+F/1CSuQMxpMYTSZRqwiTBcSkg0W0/2aNU/4P324Om8=; b=D7QDhdycNxBQUoiJIQ7+l0d73dK0VLfkl/IqEVclzUUvW7pKuezVSGnm0tS2O3munA sWG9a/e4MKJKVAlo1tubVISUHW8tDWQLMuZPwy9rZ+J9SyuMxCMoKjuk9BI1rlUlvZDf Un00iq5X7TPmX9LmRd8goe9LtQTQauDGTbVfgu8M+w63y2hVab1Zo+ioR298f4xAQlhU RPlVc2Kh8dLJyeqbT8cP+c9qMt1uzfp9KZTsAOs+O+dHjtER5/7idK/naoqkJcJG4SDf 0HYA/I0Ciuh9/Wbd2swKYtV+m/LLSD+Uno+93sA5WLKXmxIkGF1VhauyB1ugZBxyvQ+N X6Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+F/1CSuQMxpMYTSZRqwiTBcSkg0W0/2aNU/4P324Om8=; b=jeACLGbIWfLeC3+fFvThq0USPndsek/1v8780llE/arXKEoNexogHm7U1gM+K9dgoY TALpi4TLsI9d7jOI3fHIrXJn5eHvQsfG16uv/wz4urYBaMzrZN14jET6frgGRk1a92eh KSGcwZv1F55LqQ8km1XlSICL74XMPKyOvE8ZMaNeooRPJmAi5r+pzzbt6EOsU+6i1XCS 3r24ZISjvIUts9jTPxM4T8azC/iDD+yQ8jDeNoehbZgcAfce4YeYfLV+rCGkT97hsbro GFoTegoPAh96Bccjr10Cz3XCnyxj5YQ3V7JOskUtXpTwKe1m6K8smbIlMhQo9vg3TnXg Y+tw== X-Gm-Message-State: ALoCoQm7Ch/OCvaF2n1V87lgLhssT6ik8EdVFwH0aq3tTcmB7GRK7DmPoJMTtIYCBCDH7Y4rVU7gczSxX8Vt+U1YxLq+WB4l/onrU3vNd0fr48uP8TzhyMM= MIME-Version: 1.0 X-Received: by 10.194.175.194 with SMTP id cc2mr40970813wjc.121.1450130095536; Mon, 14 Dec 2015 13:54:55 -0800 (PST) Sender: sobomax@sippysoft.com Received: by 10.27.39.135 with HTTP; Mon, 14 Dec 2015 13:54:55 -0800 (PST) In-Reply-To: <1450126918.25138.17.camel@freebsd.org> References: <1450126918.25138.17.camel@freebsd.org> Date: Mon, 14 Dec 2015 13:54:55 -0800 X-Google-Sender-Auth: vQuSEVqGAZZco_E4WUaR0L1L0Lw Message-ID: Subject: Re: Initiate TRIM/DELETE to a range of blocks from userland? From: Maxim Sobolev To: Ian Lepore Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 21:54:58 -0000 Thanks, looks like somebody already written tool that does precisely that: https://unix4lyfe.org/gitweb/trim/tree Gotta see maybe make a port out of it. On Dec 14, 2015 1:02 PM, "Ian Lepore" wrote: > On Mon, 2015-12-14 at 12:52 -0800, Maxim Sobolev wrote: > > Hi guys, let's say I have a raw device (e.g. "ada1") and I want to > > generate BIO_DELETE to a range of offsets on that device. Is there > > any > > way to do it now, and if not, what do you think would be the most > > proper way to get something like this implemented? New ioctl and some > > new flag for the dd(1)? > > Looks like there's already an ioctl, DIOCGDELETE in sys/disk.h, used by > newfs -E via the berase() routine in libufs. > > -- Ian > > From owner-freebsd-hackers@freebsd.org Mon Dec 14 22:39:03 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8BB2A447BE for ; Mon, 14 Dec 2015 22:39:03 +0000 (UTC) (envelope-from larry.maloney@hackerdojo.com) Received: from mail-pf0-x22b.google.com (mail-pf0-x22b.google.com [IPv6:2607:f8b0:400e:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 85B311174 for ; Mon, 14 Dec 2015 22:39:03 +0000 (UTC) (envelope-from larry.maloney@hackerdojo.com) Received: by pff63 with SMTP id 63so18647380pff.2 for ; Mon, 14 Dec 2015 14:39:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hackerdojo-com.20150623.gappssmtp.com; s=20150623; h=from:content-type:subject:message-id:date:to:mime-version; bh=duRchXcvFT5tVdnluUQCP0SvgXbbX3dQFqjYD7aq9Pg=; b=rycQ2GD9QV3Q7fm/cbn0tBUPm+wNVR6JP+zGf8Q4xOQuw+dqeyYukjnIs2hS/m2ju7 XdCtMAkZ2TyzEGkZ6yTfrOD2hurcTxGjKwdH2Zx0YMYK3jGnibxHksValMukzvPFXMpN 1o4G/yHzOpLjSsLmZt0XIEryqNOILHpkwAaHr3uASWHdoO2qhp818HSUs1f3icxDJUo4 DNdfpKB1sZE3rPHuL4dnlxQfRLlbhRqhaUQwfidAYQbyVsxMhL7y4LDMxOoif7ZDM8uZ HBhT7uapo2NbDT75jCPLuB0OWo+DxIjxZlY16tns85BbN0XW6dZNWDvYnXfZBFSznY7O ooAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:message-id:date:to :mime-version; bh=duRchXcvFT5tVdnluUQCP0SvgXbbX3dQFqjYD7aq9Pg=; b=Eocu87oZYx0wdtrYJJWlc9Re8l7t1qrolQkTyVj4JfKWluxTggOveM6r13KvYUN/fR s493H6Wne1Y4PCJ0Y5AbUiGyY1Xbt8xcq54sPiwacD2/UL++yA00rJY+DPeAe69hbL8v qgbVZVNYALqowAA4wGI5UUv4qDGBzPlTUAuT6oNjmAkozVgqmovLx1yl+D/PR+BHYSyx t/Kx0mPyTTZwlLAV9BvK6EINUvLtgYcL9RgRkPJNJuyU3cnGW0s1b/xJ8wtKGxPQmbxl 5WJdg6+DyYNBUmIsnr9130IDWxJS40adL1dxWPkoYQvboTZ+AJLzpWXpv0a9I105eioT v7Pw== X-Gm-Message-State: ALoCoQnZy8SPnQ6Kmlj4mhsiWrC51ziD0FqknJPpyYbZg/oPbKDurQtLWR5dgzKbzGvf8iXN+JJR+8GaDrRTXRjRDnnXO/3ZbA== X-Received: by 10.98.16.76 with SMTP id y73mr39540273pfi.151.1450132743143; Mon, 14 Dec 2015 14:39:03 -0800 (PST) Received: from mdns.hackerdojo.com ([12.251.228.138]) by smtp.gmail.com with ESMTPSA id y83sm44432286pfi.85.2015.12.14.14.39.01 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Dec 2015 14:39:01 -0800 (PST) From: Larry Maloney Subject: ( Possible) Kernel Exploit Message-Id: <6C7ACBA0-AD4E-484B-AF6F-96787A0C2ADF@hackerdojo.com> Date: Mon, 14 Dec 2015 14:39:00 -0800 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) X-Mailer: Apple Mail (2.3096.5) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 22:39:03 -0000 In case you haven=E2=80=99t read: = http://www.networkworld.com/article/3014714/security/developer-claims-ps4-= officially-jailbroken.html = From owner-freebsd-hackers@freebsd.org Tue Dec 15 00:57:30 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6A69A439F2 for ; Tue, 15 Dec 2015 00:57:29 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A74941BCE for ; Tue, 15 Dec 2015 00:57:29 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by qkck189 with SMTP id k189so129249300qkc.0 for ; Mon, 14 Dec 2015 16:57:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=pNtJ6PJioOYbX+l5GWiCCxQvyb+BzEbRtlELR2SJUyU=; b=Yyv7BQMHG3oLLAC+tC99+k4zvzhLIEp9Qqan5i6PZcPQkuXGTe7+gUPPetYQ2qmLvy ixJy06LBcVWdBunvNEpJ+tl+N9VQtfOoXDd9zhJaIyIle56mDIQhPdsd2DzAQ4roO4FN kSRJyATTvMUlu2two+E+GoBo8tr5GbA/8vy5dmOSgUSNXWh//rEuvAs68R2WfREQgLxU BjuExXZu5gf+yUZCUyLSovN3T1sgYrFZHkHpxkPfCkG0mm4Fdtl5xKZ2SfbG6lJBgdLe o2VWaFn/z0EzcXD/A9l9mFurkAPv60YtB5reh3MEzI8BaXj5DCm/M2SsIMtT5ZQvxl+m Dx7g== X-Received: by 10.55.215.156 with SMTP id t28mr45617329qkt.41.1450137079174; Mon, 14 Dec 2015 15:51:19 -0800 (PST) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com. [209.85.220.169]) by smtp.gmail.com with ESMTPSA id j36sm14796268qgd.46.2015.12.14.15.51.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Dec 2015 15:51:19 -0800 (PST) Received: by qkht125 with SMTP id t125so162349238qkh.3 for ; Mon, 14 Dec 2015 15:51:18 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.129.57.69 with SMTP id g66mr20904059ywa.267.1450137078514; Mon, 14 Dec 2015 15:51:18 -0800 (PST) Reply-To: cem@FreeBSD.org Received: by 10.37.4.69 with HTTP; Mon, 14 Dec 2015 15:51:18 -0800 (PST) Received: by 10.37.4.69 with HTTP; Mon, 14 Dec 2015 15:51:18 -0800 (PST) In-Reply-To: <6C7ACBA0-AD4E-484B-AF6F-96787A0C2ADF@hackerdojo.com> References: <6C7ACBA0-AD4E-484B-AF6F-96787A0C2ADF@hackerdojo.com> Date: Mon, 14 Dec 2015 15:51:18 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ( Possible) Kernel Exploit From: Conrad Meyer To: Larry Maloney Cc: FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 00:57:30 -0000 https://twitter.com/CTurtE/status/656520863123156992 On Dec 14, 2015 2:39 PM, "Larry Maloney" wrote: > > > In case you haven=E2=80=99t read: > > > http://www.networkworld.com/article/3014714/security/developer-claims-ps4= -officially-jailbroken.html > < > http://www.networkworld.com/article/3014714/security/developer-claims-ps4= -officially-jailbroken.html > > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " From owner-freebsd-hackers@freebsd.org Thu Dec 17 13:51:37 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C63B4A4A6F1 for ; Thu, 17 Dec 2015 13:51:37 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from know-smtprelay-omc-2.server.virginmedia.net (know-smtprelay-omc-2.server.virginmedia.net [80.0.253.66]) by mx1.freebsd.org (Postfix) with ESMTP id 342CA14A6 for ; Thu, 17 Dec 2015 13:51:36 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from [192.168.1.100] ([86.10.211.13]) by know-smtprelay-2-imp with bizsmtp id udqR1r00n0HtmFq01dqRAz; Thu, 17 Dec 2015 13:50:25 +0000 X-Originating-IP: [86.10.211.13] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=SB7hr1IvJSWWr45F2gQiKw==:117 a=SB7hr1IvJSWWr45F2gQiKw==:17 a=NLZqzBF-AAAA:8 a=IkcTkHD0fZMA:10 a=6I5d2MoRAAAA:8 a=SyXzUoNMEydXhkdjL4IA:9 a=QEXdDO2ut3YA:10 a=XdyKOaxJwVsA:10 a=ZUGwP7LCt9cA:10 a=FSu5OgGmP5kA:10 Subject: nosh version 1.23 To: supervision@list.skarnet.org, FreeBSD Hackers , debian-user@lists.debian.org References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> <55902328.8080602@NTLWorld.com> <55D5CFA2.5010402@NTLWorld.com> <55D8B9AC.6010209@NTLWorld.com> <56089268.6080007@NTLWorld.com> <56120D11.4080506@NTLWorld.com> <5636C75B.70000@NTLWorld.com> From: Jonathan de Boyne Pollard Message-ID: <5672BD8C.50303@NTLWorld.com> Date: Thu, 17 Dec 2015 13:50:04 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5636C75B.70000@NTLWorld.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 13:51:38 -0000 The nosh package is now up to version 1.23 . * http://homepage.ntlworld.com./jonathan.deboynepollard/Softwares/nosh.html * https://www.freebsd.org/news/status/report-2015-07-2015-09.html#The-nosh-Project There is one major item in this release. * I've adjusted console-fb-realizer's keyboard handling on BSD to use USB directly. There are a few more minor changes. * I've upgraded the version of clang++ that is used to build the binary packages to 3.8.0. This should have no visible effect whatsoever. (-: * The handling of the DECDA2 control sequence by console-terminal-emulator now copes with what vim sends. (What vim sends isn't what my DEC VT tests had been checking.) * convert-systemd-units now inserts uses of the ionice and chrt chain-loading commands on Linux into the generated service bundles. Mostly this is a clearing the decks release in the hope that I will be able to do some more work on the remaining few FreeBSD conversions before the new year. USB keyboard support ==================== The keyboard handling is a change to using the USB HID devices (/dev/uhid*) on FreeBSD in preference to (but not forcibly instead of) the ATA keyboard protocol. In part this is in order to handle the "consumer" keys that USB has. In part this is in order to handle the extra keys that one finds on 106-key, 107-key, and 109-key keyboards and on some numeric keypads (such as the ABNT2 thousands-separator key). In part it's to remove an extra layer of the user-space virtual terminal system that can be outwith the kernel. In part it's to match the USB mouse capability from version 1.22 of the toolset. Please note that the structure of kbdmap files has changed slightly, to accomodate mappings for "consumer" keys, to reposition the entries for some of the 106/107/109-key keyboards' extra keys, and to cover all of the function key gymnastics that vim can accept. The /etc/system-control/convert/ system should automatically re-convert your VT kbd files into the new format.As part of this, I've moved the mapping for the Euro symbol in the fallback U.K. layout (as generated on Linux in the absence of VT kbd files). It used to be level 3 shift on the [eE] key in prior versions of the toolset. Almost all real U.K. keyboards nowadays have it engraved as level 3 shift on the [4$] key, and that's where it now is. Also note that I'm still working on this. There might be further changes in 1.24. I've found a U.K. keyboard with two [#~] keys (at A00 and C12), and I need to check out whether this actually employs what I had thought to be an error in the USB HID usage tables (distinct usages for "\|" and "Europe1") and had corrected, or whether this is a quite mad keyboard that simply has two "Europe1" keys (or two "\|" keys). Also, I've ordered an ABNT2 and a Japanese USB keyboard, and hope to do some testing with them, which may prompt further tweaks. (I really wanted to buy a Leadership 4530 keyboard. They seem to be out of stock in a lot of places.) From owner-freebsd-hackers@freebsd.org Thu Dec 17 20:21:13 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0FB8FA4A72F for ; Thu, 17 Dec 2015 20:21:13 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 664B4143C for ; Thu, 17 Dec 2015 20:21:11 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.13.108]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0M8KKw-1aMUkP1f98-00vy8E for ; Thu, 17 Dec 2015 21:15:51 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1a9exp-0001YN-HO for freebsd-hackers@freebsd.org; Thu, 17 Dec 2015 21:15:49 +0100 Date: Thu, 17 Dec 2015 21:15:48 +0100 From: Bertram Scharpf To: freebsd-hackers@freebsd.org Subject: /etc/src.conf in the right place? Message-ID: <20151217201548.GA32678@becker.bs.l> Mail-Followup-To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:0ZmVJmNcjyni0dj5X2L9Sulqf1u7lzJUGslVSNBOzMWj2VaFUZL wfT4FKBi51+ey339ufR7nu+HI9sYRmwcTNJ2i1P1r+NNWhrVOeORzNhNPdlb90CpGzry6S1 nff4kZkk+ydaYlsZQuCXL+cB4jLNP6jYKBLGzmmcgSvQAdRxFRwxCEJfsO2+8Fmmm1eYSIp ApWpCZfLoCFlYYBXDRoMA== X-UI-Out-Filterresults: notjunk:1;V01:K0:U4hWGk6hyz0=:3UzmoOYeufSU8RmSohJwLb VJwGKm8S/wFTbt4Lwg7v4WFnvyhnHd2SJXjwL+7KxZOBaThEpQ2xWOD26zueJ4K62cucTOnPF fat4tmqGECn5/LEx8l3qQR+5eZsCWLroHWfwMxl83IGtTLzjwGVpTpgwA8xl3Mgzcl6XKvCrq 47XV08JMaZGSoVFH9TVG3MauloK+opDghF+wpafAhx6TFbtCHNmhFtuRFPVoMptCH81qq3MeT l26E4RSEYe2yijg3pRM1wu4Y1JUZ5uaYWupuLHgTma6xWss5Ts45XicZZeoJhE+/7dNR+uT3n n2OiDlGAHIC35zlW75e3/RiFIf0gG5vf6Pjh46PmlRU7S8qtj/3/IkeHujg5HL2fs997i9qDr XnOcVaK+pg8zs5zlJ0U1Ik/UrTLwSmal0q3r75SyjN01uLtZErTlQnLPwDHns0deFW0iiiKzp lHeC4TRV1pC/E5NNCutj5AnkQiJa14on/OwemXxonf5/2pJxqRUI2RPfDIUGrZW61FcfDDL2f vlR0gTAc/T4rWX/vUztfQASZsNkC2yFvU84PJx7SBaV8NAtWnAWo0KOXkj7XVQZiHNc8GLosO AZAEiuWDtfMSZDOuneqnk6+b8oS1VpBeZLEyIPr1GA/Q9reQUBd+zRHc1iQ0hEQwMS/EXe/pT jNBdjb3IeKeRPXsCRPdJxvDWbeEJsdO6cuaLB1R8VgT1D4UvJdkhwo/P75Tf9+O6kzoU= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 20:21:13 -0000 Hi, when updating the base system I usually compile it using "make buildworld" on my fastest machine. Then I nfs-mount the directories /usr/src and /usr/obj on the machine I want to update. There I say "make installworld". If I forgot to copy the file /etc/src.conf to the target machine, the install will fail. Wouldn't it be more reasonable if src.conf was stored inside the source tree? Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-hackers@freebsd.org Thu Dec 17 20:31:19 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE7BFA4AFBB for ; Thu, 17 Dec 2015 20:31:19 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7021610F2 for ; Thu, 17 Dec 2015 20:31:19 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id tBHKVCKD063478 for ; Thu, 17 Dec 2015 12:31:12 -0800 (PST) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id tBHKVCIY063477 for freebsd-hackers@freebsd.org; Thu, 17 Dec 2015 12:31:12 -0800 (PST) (envelope-from david) Date: Thu, 17 Dec 2015 12:31:12 -0800 From: David Wolfskill To: freebsd-hackers@freebsd.org Subject: Re: /etc/src.conf in the right place? Message-ID: <20151217203112.GV1173@albert.catwhisker.org> Reply-To: hackers@freebsd.org Mail-Followup-To: hackers@freebsd.org, freebsd-hackers@freebsd.org References: <20151217201548.GA32678@becker.bs.l> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="75efu8vkn6QcqU9C" Content-Disposition: inline In-Reply-To: <20151217201548.GA32678@becker.bs.l> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 20:31:19 -0000 --75efu8vkn6QcqU9C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 17, 2015 at 09:15:48PM +0100, Bertram Scharpf wrote: > Hi, >=20 > when updating the base system I usually compile it using > "make buildworld" on my fastest machine. Then I nfs-mount > the directories /usr/src and /usr/obj on the machine I want > to update. There I say "make installworld". If I forgot to > copy the file /etc/src.conf to the target machine, the > install will fail. >=20 > Wouldn't it be more reasonable if src.conf was stored inside > the source tree? > .... Not for me. While I do something quite similar, my "build" machine runs a GENERIC kernel, but the "production" machines have their own requirements (& kernels); thus, I use each machine's /etc/src.conf to specify which kernel it ought to be installing for "make installkernel". (To clarfy: the build machine builds a GENERIC kernel as well as each of the other kernels (for the production machines), but only (self-)installs GENERIC. Each production machine installs its own kernel, as specified by its own /etc/src.conf.) Peace, david --=20 David H. Wolfskill david@catwhisker.org Those who would murder in the name of God or prophet are blasphemous coward= s. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --75efu8vkn6QcqU9C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWcxuQXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XnzwH/3y2Su9lb88tp1UkEqqzp7ZP qEuHkrzveaa3jaCOrodSUtOcSlZGo9uBXwfsKheYv3p4Txr6LR4l3oUvdrzkxB/c 2ZZYcDZvk+d1S9PT/a3/eYCz0LtVZAPSjg5mvHGD5w2NlTDR3ikYXp97DUyjXOUO 0T2AZDFPBC7kZCP2lTwBuH2zs6zh38vQII6HAyVXCNfvergXgUFXBIksjRfZaBss 6vpgncJlBLAlB3DaOBSqHtTAkkO/iHZuW2zvlhRc7rKdAbHUUb8/idA7oIJGjez0 WMfpezjNN5X7Us7AWaD+8nGfcZiGM7aIZKd6Y9YZ28zlptxyoyo9AVzs1Wzo7Ms= =JwBf -----END PGP SIGNATURE----- --75efu8vkn6QcqU9C-- From owner-freebsd-hackers@freebsd.org Thu Dec 17 20:44:55 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10E30A4B819 for ; Thu, 17 Dec 2015 20:44:55 +0000 (UTC) (envelope-from lidl@pix.net) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254:10::4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.pix.net", Issuer "Pix.Com Technologies, LLC CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D6DD5111A for ; Thu, 17 Dec 2015 20:44:54 +0000 (UTC) (envelope-from lidl@pix.net) Received: from torb.pix.net (torb.pix.net [192.168.16.32]) (authenticated bits=0) by hydra.pix.net (8.15.2/8.15.2) with ESMTPA id tBHKiqOO034545; Thu, 17 Dec 2015 15:44:52 -0500 (EST) (envelope-from lidl@pix.net) Subject: Re: /etc/src.conf in the right place? To: freebsd-hackers@freebsd.org References: <20151217201548.GA32678@becker.bs.l> From: Kurt Lidl Message-ID: <56731EC4.3080208@pix.net> Date: Thu, 17 Dec 2015 15:44:52 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151217201548.GA32678@becker.bs.l> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 20:44:55 -0000 On 12/17/15 3:15 PM, Bertram Scharpf wrote: > Hi, > > when updating the base system I usually compile it using > "make buildworld" on my fastest machine. Then I nfs-mount > the directories /usr/src and /usr/obj on the machine I want > to update. There I say "make installworld". If I forgot to > copy the file /etc/src.conf to the target machine, the > install will fail. > > Wouldn't it be more reasonable if src.conf was stored inside > the source tree? You can easily store your src.conf in the /usr/src directory and then just export SRCCONF in your environment to point to the file's location. -Kurt From owner-freebsd-hackers@freebsd.org Thu Dec 17 22:04:46 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52E7BA4A288 for ; Thu, 17 Dec 2015 22:04:46 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A8B2C1EEC for ; Thu, 17 Dec 2015 22:04:44 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.13.108]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0MA0VM-1a33sh0npA-00B47N for ; Thu, 17 Dec 2015 23:04:43 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1a9gfC-000Imu-In for freebsd-hackers@freebsd.org; Thu, 17 Dec 2015 23:04:42 +0100 Date: Thu, 17 Dec 2015 23:04:42 +0100 From: Bertram Scharpf To: freebsd-hackers@freebsd.org Subject: Re: /etc/src.conf in the right place? Message-ID: <20151217220442.GA71083@becker.bs.l> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20151217201548.GA32678@becker.bs.l> <56731EC4.3080208@pix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56731EC4.3080208@pix.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:AiLaxJF2l5WZef08bj2mlqg9jmPT46kZ0q3MbkNdwMa0poYZwz0 5+OsefNCRrsPAMXONIffUfwiuUKkMNokbgEe3Gfk+SyAsnYJ0qbJ96lbTtYnK7TA29FPePj PPF4zfUPsewVk5fRsiTy7ZCuZksabW6ipg5WEyDUz93b5vup/qeQdX+BlyY4dzHxd7ZS76C 7229qkxO9JXJfJtlsjxAA== X-UI-Out-Filterresults: notjunk:1;V01:K0:qHDnznCnAA0=:msDFfUOfz+4+RuLNXjBqPJ j0UcmzkpAUQ1mq9nh2CkZYZKvGggkRHVb3a+OxP4NMIB8Se1bZbFgZ3QGtXZDV6Dn0JAyfWJr jlyYLK66k4kJOEu2bh/9SGwNXahEpEoeGsUjkr66RXykfQWrsB9EYE2uH2PpxfL5YrDblVG2z QjJQ+Og802SMC9m/XUh6tYXivNkdaBghgdyRchUpN2klMvrJOy6OGfNBXzuhuoWcyQqSTn6Oz adp/mK/g6HRlmpAa4UhPk/02zkj3BxWo7FtXJiFxfnq+DHKG1a8jBb6E4Q+tSlESilBd9DolX 9h9dD0XwbyVh/FHdfTVwzTP8x7xt42Omsmu/bXn8GhPfH0fHVbzU72Hsil/T7eeTALUIqXbuF 1R5GsRK6bS6lTjuEJ7FpLjVqkyI9xqfSFFYF+WWv+79Iu6YpivIfAj78yhnhWctgjpS1Yo9dr SpK3IWV3nmNp7YOohG9wOU6ukxi0Ay+hPCwwWwu8zpt0Jxj/WC6T12FwsvtkRa1Hi7U/JMxC2 kaYHduu3pmQ3T2eC1UNAEmqE/DNlQU82KirGb4tymOzvJ0RE6Ww/9QWVxGrbh+0oWdKVbTGBd h3TImK7ILl3l12l50c05Ik00uhuHz8qMEgboblQVsYz0zKmJmIr1CYx7gcXkgXLx1Pc1Y3BAV xe0HzLsrnbxhEhlqyQqvPmrudC+SU8A9PuDPwTAlNTxbzLQxclAe4ZwSrWPKNOCQ2Wx8= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 22:04:46 -0000 Hi, On Thursday, 17. Dec 2015, 15:44:52 -0500, Kurt Lidl wrote: > On 12/17/15 3:15 PM, Bertram Scharpf wrote: > > when updating the base system I usually compile it using > > "make buildworld" on my fastest machine. Then I nfs-mount > > the directories /usr/src and /usr/obj on the machine I want > > to update. There I say "make installworld". If I forgot to > > copy the file /etc/src.conf to the target machine, the > > install will fail. > > > > Wouldn't it be more reasonable if src.conf was stored inside > > the source tree? > > You can easily store your src.conf in the /usr/src directory > and then just export SRCCONF in your environment to point > to the file's location. I first thought of a symlink but that's even better. Thanks! Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-hackers@freebsd.org Fri Dec 18 19:06:27 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE766A4CC62 for ; Fri, 18 Dec 2015 19:06:27 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F46910C0 for ; Fri, 18 Dec 2015 19:06:25 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.9.47]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MAYXK-1a3z072J3q-00Bb4Q for ; Fri, 18 Dec 2015 20:06:17 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aA0M4-0000eE-R7 for freebsd-hackers@freebsd.org; Fri, 18 Dec 2015 20:06:16 +0100 Date: Fri, 18 Dec 2015 20:06:16 +0100 From: Bertram Scharpf To: freebsd-hackers@freebsd.org Subject: lldb crashes hello.c Message-ID: <20151218190616.GA2284@becker.bs.l> Mail-Followup-To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:J5qkLXrhkWSSp1EIyEj+vBpFyId27MssrhkkSptFqBYxOreosMz LJ2Gal/Kxs78hPigot2rsuHh+NRlnmkwJkhSnHLDW1cpqmzBvU73PHcVpdl3BWOqxTCLiY6 v+KvVYNvL3z3eHLiK9wBW8KA83cUaRW9iClYkFTOZJK80zsKPP6Gu3dmO3O9mDkAiF4u2Vk Hpd39BVrkvgr3DYLO/hpg== X-UI-Out-Filterresults: notjunk:1;V01:K0:AYdyHDzbBwQ=:SQM3S2jL2lLKR4WNbHTu9o LO9j8YofmIPDlB4pleiVJIRjjVv4rRAJcucd1UsmtQ5BkS/g7E3UC/PUvAOiv8FPafOQ2eXAs aJZvy7se/nj8p9FiLt9bNj77Y7xhvDjgyT+hjfLHlQ6MI/dVvh75H4RYuzPRGhwS7R16HorVh GrTL33IhhxO0co0D+swIlYdK91um/hmYj9l0Amc31v5H8mqk8lN/bdU/1ITfpTBNxSPD0Cfoe IjP+RxjJ+B8TUujJxdE/UqPNMjQT0g0uR0WyC/ngwIlAOT5T0Hl1vHIkWOSArCaQipoXj9dgK F7HsZatd4nABX4HQAqYVfBPnIeMngqNPywLM0WyBSBlCOVY+NTio27RIrYbWOrkCCl/etiarj ck4Hndth71hUGpjnRzQR55XMxDdJfvPowc3q0//BslGSS3khbH8NJeYlhuen5KpmGRcem3AI4 ft+aeRKrbToFBgQz1izvZHWuR44DyE3M4KwS4T0DjDmAdipeAnFtup3nIhANWHeYM/TxlK8+1 gv7Qx9gEIcRHS4pBSnZwxaKBX2jrG5qyTcZjjBJFaNt4iP61XEAaK+6oooefEh9QoVUoRb4nY vhjkw4FQRFzke5Zr4MTYj3jyy9Rzz3LnW0NnltdelVdCSpamuHSAluhrs/I+8M2eW3X9hReos EO/cYbFbPlsi+ewmMt0IKOoKGSAmwaTIcrJ0XofCs3W0cGPTEhgD4OfS5+2xoEUUa5Xc= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2015 19:06:27 -0000 Hi, I started to play around with LLDB, but it crashes right on the start. user@host ~/sandbox % rake hello cc -I/usr/local/include -g -O0 -o hello.o -c hello.c cc -Wl,-L/usr/local/lib -o hello hello.o user@host ~/sandbox % lldb (lldb) target create hello Current executable set to 'hello' (i386). (lldb) source list 8 { 9 printf( "Hello, world!\n"); 10 return 0; 11 } 12 (lldb) breakpoint set -f hello.c -l 9 Breakpoint 1: where = hello`main + 31 at hello.c:9, address = 0x080485af (lldb) process launch Process 2409 launching Process 2409 stopped (lldb) Process 2409 launched: '/usr/home/user/sandbox/hello' (i386) Process 2409 stopped * thread #1: tid = 100224, 0x0818188f, stop reason = hardware error frame #0: 0x0818188f -> 0x818188f: addb %al, (%eax) 0x8181891: addb %al, (%eax) 0x8181893: addb %al, (%eax) 0x8181895: addb %al, (%eax) (lldb) What did I do wrong? Thanks in advance, Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-hackers@freebsd.org Fri Dec 18 23:09:28 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 221F6A4C14D for ; Fri, 18 Dec 2015 23:09:28 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0296D1502; Fri, 18 Dec 2015 23:09:28 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 619B0B9A3; Fri, 18 Dec 2015 18:09:26 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Cc: Emmanuel Vadot , 'Ed Maste' , Rui Paulo Subject: Re: boot1.efi and ConsoleControl on HP 840G1/G2 Date: Fri, 18 Dec 2015 14:44:56 -0800 Message-ID: <2690526.ic7VAp0tDr@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <20151119141026.c1c859703fc5fcc09d18d9b5@bidouilliste.com> References: <20151119120945.71d0cb068006398d3a556559@bidouilliste.com> <20151119141026.c1c859703fc5fcc09d18d9b5@bidouilliste.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 18 Dec 2015 18:09:26 -0500 (EST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2015 23:09:28 -0000 On Thursday, November 19, 2015 02:10:26 PM Emmanuel Vadot wrote: > On Thu, 19 Nov 2015 12:09:45 +0100 > Emmanuel Vadot wrote: > > > > > Hello Hackers, > > > > After hours I've found why I couldn't use properly FreeBSD on my HP 840G1/G2 laptop. > > > > What is happening right now with -current is that the kernel framebuffer is garbage (https://www.bidouilliste.com/images/efi/IMG_2650.JPG). > > The problem is that boot1.efi calls ConsoleControl which, from my findings, is not in the UEFI specs but was only in the EDK implementation. > > This should not be a problem as LocateProtocol should return != EFI_SUCCESS but on my laptops (and probably others) this is not the case. > > > > After removing the ConsoleControl related lines and recompiling boot1.efi I can now boot FreeBSD. > > > > I'm pretty sure that this would not be a problem on other machine (with the patch I can still boot correctly FreeBSD on my Samsung 870Z laptop) but I would prefer that other people test it. > > > > I've opened a bug on bugzilla (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204674) if some people want to try the patch. > > > > Cheers, > > > > Replying to myself cause I've found other stuff. > > I looked at GRUB sources and it do what boot1.efi do (use ConsoleControl to set the Console to text mode, grub_efi_set_text_mode in grub-core/kern/efi/efi.c). > The only difference that I can see between how GRUB handle the EFI console and boot1 is that grub never Reset the Console nor change the current text mode (grub-core/term/efi/console.c). > So I patched again boot1.efi leaving the ConsoleControl stuff on but commented the Reset and the SetMode stuff, and this worked. > > This is the screen when the console is Reset : https://www.bidouilliste.com/images/efi/IMG_2649.JPG > This is the screen when the console is not reseted : https://www.bidouilliste.com/images/efi/IMG_2651.JPG > > From loader(8) with the current boot1.efi, if I type gop list I got 4 modes but all of them are 1920x1280. > If I gop set X and gop set 0 (1920x1280) (Or via loader.rc), when the kernel start the framebuffer data is correct. > > From loader(8) with the patched boot1.efi, if I type gop list I got the 4 correct modes. Hmm, Rui added the console reset in r281059. It sounds like you need to revert the changes made there? Does it work if you leave the reset and disable the SetMode() bits? -- John Baldwin