From owner-freebsd-geom@FreeBSD.ORG Sun Jul 29 20:29:37 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47E16106566B for ; Sun, 29 Jul 2012 20:29:37 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 091B58FC1E for ; Sun, 29 Jul 2012 20:29:37 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:9db0:4615:f8f5:e1a7]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 84DED4AC2D for ; Mon, 30 Jul 2012 00:29:35 +0400 (MSK) Date: Mon, 30 Jul 2012 00:29:27 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <803675128.20120730002927@serebryakov.spb.ru> To: freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: "nextboot" for MBR slice? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2012 20:29:37 -0000 Hello, Freebsd-geom. Is it possible to implement something like "nextboot" for MBR slice? I have typical NanoBSD installation: CF card divided into tow slices (ad1 and ad2), standard boot0 (as "smart" boot0 with partition selection doesn't play well with serial console), each slice contains full NanoBSD installation, current one and previous one. When I need upgrade "firmware" I dd new image on "previous" slice and set active bit in MBR (with gpart set -a active) to it, reboot. It works perfectly when it works. But if new "firmware" is broken (as with latest -CURRENT), I need to perform some non-trivial operations to reset active bit to "previous" slice with "stable" firmware. As this device could not be booted from USB and CF card is in case, secured with several screws, it could be difficult to switch loader back to previous slice, if new one could not be boot even in single-user (fortunately, this time single-user mode worked). Is here any way to switch active MBR slice only for next boot, or instruct boot0 loader in some other way to use specific slice onlt one time? In such case, it will be possible to "commit" all changes after successfull boot with gpart by hands or "rollback" by simple power cycle... -- // Black Lion AKA Lev Serebryakov From owner-freebsd-geom@FreeBSD.ORG Mon Jul 30 11:07:15 2012 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54674106564A for ; Mon, 30 Jul 2012 11:07:15 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3609E8FC08 for ; Mon, 30 Jul 2012 11:07:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6UB7F4X001782 for ; Mon, 30 Jul 2012 11:07:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6UB7EaO001780 for freebsd-geom@FreeBSD.org; Mon, 30 Jul 2012 11:07:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Jul 2012 11:07:14 GMT Message-Id: <201207301107.q6UB7EaO001780@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 11:07:15 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/170199 geom [geom] [panic] Kernel Panic in GEOM_VIRSTOR o kern/170038 geom [geom] geom_mirror always starts degraded after reboot o kern/169539 geom [geom] [patch] fix ability to run gmirror on MSI MegaR a bin/169077 geom bsdinstall(8) does not use partition labels in /etc/fs f kern/165745 geom [geom] geom_multipath page fault on removed drive o kern/165428 geom [glabel][patch] Add xfs support to glabel o kern/164254 geom [geom] gjournal not stopping on GPT partitions o kern/164252 geom [geom] gjournal overflow o kern/164143 geom [geom] Partition table not recognized after upgrade R8 a kern/163020 geom [geli] [patch] enable the Camellia-XTS on GEOM ELI o kern/162010 geom [geli] panic: Provider's error should be set (error=0) o kern/161979 geom [geom] glabel doesn't update after newfs, and glabel s o kern/161752 geom [geom] glabel(8) doesn't get gpt label change o bin/161677 geom gpart(8) Probably bug in gptboot o kern/160562 geom [geom][patch] Allow to insert new component to geom_ra o kern/160409 geom [geli] failed to attach provider f kern/159595 geom [geom] [panic] panic on gmirror unload in vbox [regres p kern/158398 geom [headers] [patch] includes o kern/158197 geom [geom] geom_cache with size>1000 leads to panics o kern/157879 geom [libgeom] [regression] ABI change without version bump o kern/157863 geom [geli] kbdmux prevents geli passwords from being enter o kern/157739 geom [geom] GPT labels with geom_multipath o kern/157724 geom [geom] gpart(8) 'add' command must preserve gap for sc o kern/157723 geom [geom] GEOM should not process 'c' (raw) partitions fo o kern/157108 geom [gjournal] dumpon(8) fails on gjournal providers o kern/155994 geom [geom] Long "Suspend time" when reading large files fr o kern/154226 geom [geom] GEOM label does not change when you modify them o kern/150858 geom [geom] [geom_label] [patch] glabel(8) is not compatibl o kern/150626 geom [geom] [gjournal] gjournal(8) destroys label o kern/150555 geom [geom] gjournal unusable on GPT partitions o kern/150334 geom [geom] [udf] [patch] geom label does not support UDF o kern/149762 geom volume labels with rogue characters o bin/149215 geom [panic] [geom_part] gpart(8): Delete linux's slice via o kern/147667 geom [gmirror] Booting with one component of a gmirror, the o kern/145818 geom [geom] geom_stat_open showing cached information for n o kern/145042 geom [geom] System stops booting after printing message "GE o kern/143455 geom gstripe(8) in RELENG_8 (31st Jan 2010) broken o kern/142563 geom [geom] [hang] ioctl freeze in zpool o kern/141740 geom [geom] gjournal(8): g_journal_destroy concurrent error o kern/140352 geom [geom] gjournal + glabel not working o kern/135898 geom [geom] Severe filesystem corruption - large files or l o kern/134113 geom [geli] Problem setting secondary GELI key o kern/133931 geom [geli] [request] intentionally wrong password to destr o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a o bin/131415 geom [geli] keystrokes are unregulary sent to Geli when typ o kern/131353 geom [geom] gjournal(8) kernel lock o kern/129674 geom [geom] gjournal root did not mount on boot o kern/129645 geom gjournal(8): GEOM_JOURNAL causes system to fail to boo o kern/129245 geom [geom] gcache is more suitable for suffix based provid o kern/127420 geom [geom] [gjournal] [panic] Journal overflow on gmirrore o kern/124973 geom [gjournal] [patch] boot order affects geom_journal con o kern/124969 geom gvinum(8): gvinum raid5 plex does not detect missing s o kern/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123122 geom [geom] GEOM / gjournal kernel lock o kern/122738 geom [geom] gmirror list "losts consumers" after gmirror de o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass o kern/115856 geom [geli] ZFS thought it was degraded when it should have o kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro f kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/90582 geom [geom] [panic] Restore cause panic string (ffs_blkfree o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o bin/86388 geom [geom] [geom_part] periodic(8) daily should backup gpa o kern/84556 geom [geom] [panic] GBDE-encrypted swap causes panic at shu o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/79035 geom [vinum] gvinum unable to create a striped set of mirro o bin/78131 geom gbde(8) "destroy" not working. 73 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Jul 30 16:17:34 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B58D106564A for ; Mon, 30 Jul 2012 16:17:34 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (unknown [IPv6:2001:7b8:30f:e0::5059:ee8a]) by mx1.freebsd.org (Postfix) with ESMTP id 0B6448FC1A for ; Mon, 30 Jul 2012 16:17:33 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.iaf.psconsult.nl [80.89.238.138]) by mx1.psconsult.nl (8.14.5/8.14.4) with ESMTP id q6UGHRMd091629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 30 Jul 2012 18:17:32 +0200 (CEST) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.5/8.14.4/Submit) id q6UGHRF1091628 for freebsd-geom@freebsd.org; Mon, 30 Jul 2012 18:17:27 +0200 (CEST) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Mon, 30 Jul 2012 18:17:27 +0200 From: Paul Schenkeveld To: freebsd-geom@freebsd.org Message-ID: <20120730161727.GA90551@psconsult.nl> References: <803675128.20120730002927@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <803675128.20120730002927@serebryakov.spb.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: "nextboot" for MBR slice? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 16:17:34 -0000 On Mon, Jul 30, 2012 at 12:29:27AM +0400, Lev Serebryakov wrote: > Hello, Freebsd-geom. > > Is it possible to implement something like "nextboot" for MBR > slice? I don't know of such implementation. > I have typical NanoBSD installation: CF card divided into tow slices > (ad1 and ad2), standard boot0 (as "smart" boot0 with partition > selection doesn't play well with serial console), each slice contains > full NanoBSD installation, current one and previous one. When I need > upgrade "firmware" I dd new image on "previous" slice and set > active bit in MBR (with gpart set -a active) to it, reboot. Did you try to use boot0sio? I run dozens of NanoBSD systems, most are Soekris hardware with serial console, system on flash (CF, mSATA or soldered on the mainboard) so that matches the hardware you describe. There was a change in the working of boot0 and boot0sio a couple of years ago. Before the change (FB <= 7) one would use boot0cfg to change the active partition. Now (FB >= 8) one should use 'gpart set -a active -i '. The default slice reported during boot can be misleading after changing the active slice with gpart but you can still use the serial terminal to switch boot partitions. HTH, Paul Schenkeveld From owner-freebsd-geom@FreeBSD.ORG Mon Jul 30 18:21:32 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F79B1065673 for ; Mon, 30 Jul 2012 18:21:32 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id DFC658FC14 for ; Mon, 30 Jul 2012 18:21:31 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:9db0:4615:f8f5:e1a7]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 9DE084AC2D; Mon, 30 Jul 2012 22:21:24 +0400 (MSK) Date: Mon, 30 Jul 2012 22:21:23 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <941399481.20120730222123@serebryakov.spb.ru> To: Paul Schenkeveld In-Reply-To: <20120730161727.GA90551@psconsult.nl> References: <803675128.20120730002927@serebryakov.spb.ru> <20120730161727.GA90551@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@freebsd.org Subject: Re: "nextboot" for MBR slice? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 18:21:32 -0000 Hello, Paul. You wrote 30 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 20:17:27: PS> Did you try to use boot0sio? I run dozens of NanoBSD systems, most are It strangely hangs up to 10 minutes on my net5501... PS> change the active partition. Now (FB >=3D 8) one should use 'gpart set PS> -a active -i '. The default slice reported during boot can be Yep, it is exactly what I do... I'm wonder, is it possible to switch to GPT "on the fly"... old gpt command has "migrate" operation, but current "gpart" doesn't have one. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-geom@FreeBSD.ORG Mon Jul 30 19:37:36 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1EDB6106564A for ; Mon, 30 Jul 2012 19:37:36 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (unknown [IPv6:2001:7b8:30f:e0::5059:ee8a]) by mx1.freebsd.org (Postfix) with ESMTP id C04188FC15 for ; Mon, 30 Jul 2012 19:37:35 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.iaf.psconsult.nl [80.89.238.138]) by mx1.psconsult.nl (8.14.5/8.14.4) with ESMTP id q6UJbTCj067131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 30 Jul 2012 21:37:34 +0200 (CEST) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.5/8.14.4/Submit) id q6UJbTBq067130 for freebsd-geom@freebsd.org; Mon, 30 Jul 2012 21:37:29 +0200 (CEST) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Mon, 30 Jul 2012 21:37:29 +0200 From: Paul Schenkeveld To: freebsd-geom@freebsd.org Message-ID: <20120730193729.GA66397@psconsult.nl> References: <803675128.20120730002927@serebryakov.spb.ru> <20120730161727.GA90551@psconsult.nl> <941399481.20120730222123@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <941399481.20120730222123@serebryakov.spb.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: "nextboot" for MBR slice? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 19:37:36 -0000 On Mon, Jul 30, 2012 at 10:21:23PM +0400, Lev Serebryakov wrote: > Hello, Paul. > You wrote 30 июля 2012 г., 20:17:27: > > PS> Did you try to use boot0sio? I run dozens of NanoBSD systems, most are > It strangely hangs up to 10 minutes on my net5501... What kind of cable do you use, what terminal or terminal emulator and what communication settings? I never have problems with net5501 connected to a serial port on a FreeBSD laptop or server (either standard sio port or FTDI USB/serial converter) using a null-modem cable that also crosses modem control lines: RxD --\ /-- RxD X TxD --/ \-- TxD CTS --\ /-- CTS X RTS --/ \-- RTS DSR -+ +- DSR | | DCD -+\ /+- DCD X DTR --/ \-- DTR (My favorite null-modem cables are the light blue flat telecom cables and separate teledata RJ-45/DB9 converters that used to come with Cisco routers but haven't seen them delivered with these routers lately.) > PS> change the active partition. Now (FB >= 8) one should use 'gpart set > PS> -a active -i '. The default slice reported during boot can be > Yep, it is exactly what I do... > > I'm wonder, is it possible to switch to GPT "on the fly"... old gpt > command has "migrate" operation, but current "gpart" doesn't have one. That's probably not trivial to implment as a GPT table normally takes more space than is available on a MBR device. With kind regards, Paul Schenkeveld From owner-freebsd-geom@FreeBSD.ORG Thu Aug 2 01:40:10 2012 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A24C1065670 for ; Thu, 2 Aug 2012 01:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6A7B58FC0A for ; Thu, 2 Aug 2012 01:40:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q721eAdX043030 for ; Thu, 2 Aug 2012 01:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q721eATc043029; Thu, 2 Aug 2012 01:40:10 GMT (envelope-from gnats) Date: Thu, 2 Aug 2012 01:40:10 GMT Message-Id: <201208020140.q721eATc043029@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Frank Reppin Cc: Subject: Re: kern/170038: [geom] geom_mirror always starts degraded after reboot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Reppin List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 01:40:10 -0000 The following reply was made to PR kern/170038; it has been noted by GNATS. From: Frank Reppin To: bug-followup@FreeBSD.org, frankreppin@googlemail.com Cc: Subject: Re: kern/170038: [geom] geom_mirror always starts degraded after reboot Date: Thu, 02 Aug 2012 03:30:13 +0200 Me again here... ... another thing that puzzles me... As long as I had 'journalled softupdates' activated I could see that the reported size of my /var partition [/dev/mirror/gm0s1d] did (quite often) show disconcerting usage values when using: df; du -cs {/var,/tmp,/usr} [means - the shown results of 'df' and 'du' did show different usage values for /var - and only /var in my case - no idea why... and it even didn't somehow sync back after a couple of minutes or after rebooting - the results where 'wrong' all the time]. This came especially apparent at one time where 'df' did show me a _negative_ available space on /var (and I wasn't even close to the reserved space - 144M used out of 53G). A simple reboot (with hopes that the background fsck would fix that) wasn't enough - I had to force fsck the partition in question manually in order to show the correct usage values again... The fsck 'error' reported was (all the time): FREE BLOCK COUNTS(S) WRONG IN SUPERBLK and it only applied to /var (for some unknown reason) - I emphasize this, because I too did some decent IO to /usr at this time (like svn co) but /usr was never affected by this. [/var does provide cyrus/postfix/amavis/spamassassin and the such] However - the gmirror rebuild wasn't triggered all the time after rebooting (as I later noticed - and in contratiction to the topic of this report...) - but quite often... I would assume that 6 out of 10 reboots would trigger a gmirror rebuild in my case. ... last but not least - I've disabled SUJ on all my partitions and I've rebooted (for testcases like this several times) and the 'FREE BLOCK COUNTS(S) WRONG IN SUPERBLK' as well as the gmirror rebuilds vanished... no more trouble here - this is so weird... HTH... cheers, frank\ -- 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped From owner-freebsd-geom@FreeBSD.ORG Thu Aug 2 18:01:55 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C937106566C for ; Thu, 2 Aug 2012 18:01:55 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id D73628FC1C for ; Thu, 2 Aug 2012 18:01:54 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so7990400wgb.31 for ; Thu, 02 Aug 2012 11:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=AznbRt/LX5zlsqtradLca8u1yjgxK/uBW3Bo0Q6IXBo=; b=twOANhYXBMCV8TXRcXNR2L7LJkC3NEA9g5U1c7MBUwboMfn9n2IX7moQGnTs7TRO+q I04dLHEaT0LfcrOw4vYW6XzvcJFFDqv0UrWswdIC61w771W8umEMyfLOcSbld/XIR8ED t4YzLSFvI443kgTZJlFpsHc/uXTrf/m59UZBirLIEukjqKIIXRvrURX1mAW2IQGvDvap vHT12BIL6ca8Jl+oqBHcIA7tQ6SnHFRgo0Uxi8RnAIVT9xxcvMgZ3i8XGfjfmB/J+2/I /IXRCtGlek9leHsXknacWIkcnv6Y9mGMuu5ahamWGuVV1GD75u26EQJuDP3CkgQe7lA7 TacQ== MIME-Version: 1.0 Received: by 10.180.84.104 with SMTP id x8mr6585883wiy.20.1343930513807; Thu, 02 Aug 2012 11:01:53 -0700 (PDT) Sender: jim.harris@gmail.com Received: by 10.216.241.203 with HTTP; Thu, 2 Aug 2012 11:01:53 -0700 (PDT) Date: Thu, 2 Aug 2012 11:01:53 -0700 X-Google-Sender-Auth: WLzGfr8NZrgzBaD8ZX6AyeQGvVg Message-ID: From: Jim Harris To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: bio_flags (BIO_ORDERED) and g_clone_bio() X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 18:01:55 -0000 I'm trying to understand how the BIO_ORDERED flag ever gets passed down to disk consumers (i.e. daX) It's obvious that g_io_flush() sets the BIO_ORDERED flag, but when the bio gets cloned, the bio_flags do not get cloned. So while the FLUSH command does make it to the disk consumer, it is without the BIO_ORDERED flag. I'm sure some flags are not meant to be cloned, but is seems BIO_ORDERED should. I'm sure I'm missing something here, but haven't figured it out yet. Any help would be appreciated. Thanks, -Jim From owner-freebsd-geom@FreeBSD.ORG Thu Aug 2 18:31:21 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A16DC106564A for ; Thu, 2 Aug 2012 18:31:21 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 333618FC08 for ; Thu, 2 Aug 2012 18:31:20 +0000 (UTC) Received: by weyx56 with SMTP id x56so7460505wey.13 for ; Thu, 02 Aug 2012 11:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=k9SfNxHIv4GwKMh6AjXmI+JlqqYp9uYm7foFbSLoaK0=; b=FUb9zWPj4Daq3PX+uZzdcapnJdTK1Nd/zYRO81LuC8VnK3XWTy7RDyrVlefaoDbtdJ +s4hLjn4W3fN11sHYWSDLjKhoBQUyYN//Qe2BcXDvQIPb8n63+2S9jFYMf1U+jO8B3ga FbmxDo09Z7PaIvAQ9uiqDnSCtX2YJ007lpQZkrj2CsdZ926jsWcPq9ugiamCap8oUtdc KJKjtSnwiJIbz+fQaDdPdd8Xo9KZKqXXXUi3OX3Ac3jpDJcgGiFaxQvaty7eseEIOKRx GQapQiBKR9CjM5VDUVMhRuUphjOe0XH6nK5+iu+ZBzkh8C26cqJQPgdOslNJk9M+wEjP +Qrg== MIME-Version: 1.0 Received: by 10.180.75.209 with SMTP id e17mr7907394wiw.0.1343932280005; Thu, 02 Aug 2012 11:31:20 -0700 (PDT) Sender: jim.harris@gmail.com Received: by 10.216.241.203 with HTTP; Thu, 2 Aug 2012 11:31:19 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Aug 2012 11:31:19 -0700 X-Google-Sender-Auth: Owk8kPzdN-L0bfduX3dWDJ8z77w Message-ID: From: Jim Harris To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: bio_flags (BIO_ORDERED) and g_clone_bio() X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 18:31:21 -0000 On Thu, Aug 2, 2012 at 11:01 AM, Jim Harris wrote: > I'm trying to understand how the BIO_ORDERED flag ever gets passed > down to disk consumers (i.e. daX) It's obvious that g_io_flush() sets > the BIO_ORDERED flag, but when the bio gets cloned, the bio_flags do > not get cloned. So while the FLUSH command does make it to the disk > consumer, it is without the BIO_ORDERED flag. I'm sure some flags are > not meant to be cloned, but is seems BIO_ORDERED should. > > I'm sure I'm missing something here, but haven't figured it out yet. > Any help would be appreciated. > The following patch seems to be appropriate. The other flags (BIO_ERROR, BIO_DONE, and BIO_ONQUEUE) aren't suitable for cloning. diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index b4044a7..00c7d39 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -177,6 +177,8 @@ g_clone_bio(struct bio *bp) if (bp2 != NULL) { bp2->bio_parent = bp; bp2->bio_cmd = bp->bio_cmd; + /* Only BIO_ORDERED flag is suitable to be cloned. */ + bp2->bio_flags = bp->bio_flags & BIO_ORDERED; bp2->bio_length = bp->bio_length; bp2->bio_offset = bp->bio_offset; bp2->bio_data = bp->bio_data; From owner-freebsd-geom@FreeBSD.ORG Fri Aug 3 20:30:17 2012 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADF4E1065675 for ; Fri, 3 Aug 2012 20:30:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 994698FC19 for ; Fri, 3 Aug 2012 20:30:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q73KUHAg056608 for ; Fri, 3 Aug 2012 20:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q73KUHPG056605; Fri, 3 Aug 2012 20:30:17 GMT (envelope-from gnats) Date: Fri, 3 Aug 2012 20:30:17 GMT Message-Id: <201208032030.q73KUHPG056605@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/170199: commit references a PR X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2012 20:30:17 -0000 The following reply was made to PR kern/170199; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/170199: commit references a PR Date: Fri, 3 Aug 2012 20:24:31 +0000 (UTC) Author: jimharris Date: Fri Aug 3 20:24:16 2012 New Revision: 239021 URL: http://svn.freebsd.org/changeset/base/239021 Log: In virstor_ctl_stop(), check for a valid softc before trying to update metadata. Sponsored by: Intel Reported and tested by: Marcelo Gondim PR: kern/170199 MFC after: 3 days Modified: head/sys/geom/virstor/g_virstor.c Modified: head/sys/geom/virstor/g_virstor.c ============================================================================== --- head/sys/geom/virstor/g_virstor.c Fri Aug 3 18:40:44 2012 (r239020) +++ head/sys/geom/virstor/g_virstor.c Fri Aug 3 20:24:16 2012 (r239021) @@ -235,6 +235,12 @@ virstor_ctl_stop(struct gctl_req *req, s return; } sc = virstor_find_geom(cp, name); + if (sc == NULL) { + gctl_error(req, "Don't know anything about '%s'", name); + g_topology_unlock(); + return; + } + LOG_MSG(LVL_INFO, "Stopping %s by the userland command", sc->geom->name); update_metadata(sc); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-geom@FreeBSD.ORG Sat Aug 4 11:46:50 2012 Return-Path: Delivered-To: geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6BC2E106566B for ; Sat, 4 Aug 2012 11:46:50 +0000 (UTC) (envelope-from jaqan@www420b.sakura.ne.jp) Received: from www420b.sakura.ne.jp (www420b.sakura.ne.jp [219.94.155.210]) by mx1.freebsd.org (Postfix) with ESMTP id 207F78FC1D for ; Sat, 4 Aug 2012 11:46:49 +0000 (UTC) Received: from www420b.sakura.ne.jp (localhost [127.0.0.1]) by www420b.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id q74BkhZY020466 for ; Sat, 4 Aug 2012 20:46:43 +0900 (JST) (envelope-from jaqan@www420b.sakura.ne.jp) Received: (from jaqan@localhost) by www420b.sakura.ne.jp (8.14.3/8.14.3/Submit) id q74BkhJu020465; Sat, 4 Aug 2012 20:46:43 +0900 (JST) (envelope-from jaqan) Date: Sat, 4 Aug 2012 20:46:43 +0900 (JST) Message-Id: <201208041146.q74BkhJu020465@www420b.sakura.ne.jp> To: geom@freebsd.org From: Western Canada Lottery/Email Draw MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Cc: Subject: Your Email Has Won One Million Pounds Sterling X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: westerncanadaclaimsagent@aol.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2012 11:46:50 -0000 WESTERN CANADA LOTTERY/ EMAIL DRAW ONTARIO 49 Western Canada Lottery Corporation, Prize Payout 10th Floor, 125 Garry Street, Winnipeg, Manitoba, R3C 4J1,UK Office3rd Floor, 2-4 King Street, London, SW1Y Wed, Aug 1st, 2012 - Ontario 49 WINNING NUMBERS 1 4 17 29 36 37 Bonus 13 Attn: Winner, We happily announce to you the draw of Canadian National Lottery the UK/CANADA online Sweepstakes International program held this year 2012. You have won GBP 1,000,000.00 (One Million British Pounds Sterling Only) from Canadian lottery draw 2012.Your Email ID was one of the selected email all over the world in the lottery draw and it comes out one of the lucky winning number. For us to process your winning for transfer you are advice to contact our prize claims agent with the details below in London for your payment. Name: Edmond De Corte Email: westerncanadaclaimsagent@aol.com 24 Hrs.Telephone: +44 704 574 6752 Please forward to him the following details below 1. Name (in Full): 2. Country: 3. Address: 4. Direct Telephone/Mobile No: 5. Age: 6. Occupation/position: Congratulations!! Once again. Yours in service, Mrs.Fritz Hamilton. [Publicity Secretary] WARNING! You must keep strict confidentiality of your Prize Award claims to yourself until your money is successfully handed over to you in other to avoid disqualification that may arise from double claims. Western Canada Lottery shall not be held liable for any loss of funds arising from the above mentioned. From owner-freebsd-geom@FreeBSD.ORG Sat Aug 4 23:48:16 2012 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE157106564A; Sat, 4 Aug 2012 23:48:16 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B09BE8FC08; Sat, 4 Aug 2012 23:48:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q74NmGhS091298; Sat, 4 Aug 2012 23:48:16 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q74NmGbk091294; Sat, 4 Aug 2012 23:48:16 GMT (envelope-from linimon) Date: Sat, 4 Aug 2012 23:48:16 GMT Message-Id: <201208042348.q74NmGbk091294@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/170379: [geom] geom_multipath: rotate only considers last 2 valid providers X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2012 23:48:17 -0000 Old Synopsis: geom_multipath: rotate only considers last 2 valid providers New Synopsis: [geom] geom_multipath: rotate only considers last 2 valid providers Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Sat Aug 4 23:48:05 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=170379