login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
4
Re: [PATCH 0/6] detect online disk resize
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Patterson
Subject:
Re: [PATCH 0/6] detect online disk resize
Date: Thursday, September 4, 2008 - 7:25 am
On Thu, 2008-09-04 at 09:26 +0200, Jens Axboe wrote:
quoted text
> On Fri, Aug 29 2008, Andrew Patterson wrote: > > This is version 2 of a patch series I submitted back in May 2008. This > > version now checks for device size changes in the rescan_partitions() > > routine. Which in turn is called when a device is opened and in the > > BLKRRPART ioctl. > > > > I am resubmitting this patch series as I got little response the > > previous time. Al Viro has told me offline that he would look at it this > > time. > > > > This patch series handles online disk resizes that are currently not > > completely recognized by the kernel using the existing revalidate_disk > > routines. An online resize can occur when growing or shrinking a > > Fibre Channel LUN or perhaps by adding a disk to an existing RAID > > volume. > > > > The kernel currently recognizes a device size change when the > > lower-level revalidate_disk routines are called; however, the block > > layer does not use the new size while it has any current openers on > > the device. So, for example, if LVM has an volume open on the device, > > you will generally not see the size change until after a reboot. We > > fix this problem by creating a wrapper to be used with lower-level > > revalidate_disk routines. This wrapper first calls the lower-level > > driver's revalidate_disk routine. It then compares the gendisk > > capacity to the block devices inode size. If there is a difference, we > > adjust the block device's size. If the size has changed, we then flush > > the disk for safety. The size is also checked in rescan_partitions > > which is called when the device is opened or when the BLKRRPART ioctl > > is called. > > > > There are several ways to "kick off" a device size change: > > > > 1. For SCSI devices do: > > > > # echo 1 > /sys/class/scsi_device/<device>/device/rescan > > > > or > > > > # blockdev --rereadpt <device file> > > > > 2. Other devices (not device mapper) > > > > # blockdev --rereadpt <device file> > > > > I have tested this patch on SCSI and SmartArray (cciss) > > devices. Device mapper still does not recognize device size changes > > until the device is restarted. > > > > Jeff Moyer and Andy Ryan have done some light testing on the previous > > version of this series. > > > > This patch set has been tested with scsi-misc-2.6. It also applies to > > linux-next with some minor, obvious changes. > > This version looks sane to me. Care to resend against for-2.6.28 of the > block repo?
Will do. Thanks Andrew --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/6] detect online disk resize
, Andrew Patterson
, (Fri Aug 29, 4:12 pm)
[PATCH 1/6] Wrapper for lower-level revalidate_disk routines.
, Andrew Patterson
, (Fri Aug 29, 4:13 pm)
[PATCH 2/6] Adjust block device size after an online resiz ...
, Andrew Patterson
, (Fri Aug 29, 4:13 pm)
[PATCH 3/6] Check for device resize when rescanning partitions
, Andrew Patterson
, (Fri Aug 29, 4:13 pm)
[PATCH 4/6] SCSI sd driver calls revalidate_disk wrapper.
, Andrew Patterson
, (Fri Aug 29, 4:13 pm)
[PATCH 5/6] Added flush_disk to factor out common buffer c ...
, Andrew Patterson
, (Fri Aug 29, 4:13 pm)
[PATCH 6/6] Call flush_disk() after detecting an online re ...
, Andrew Patterson
, (Fri Aug 29, 4:13 pm)
Re: [PATCH 1/6] Wrapper for lower-level revalidate_disk ro ...
, Jeff Moyer
, (Wed Sep 3, 11:16 am)
Re: [PATCH 2/6] Adjust block device size after an online r ...
, Jeff Moyer
, (Wed Sep 3, 11:17 am)
Re: [PATCH 3/6] Check for device resize when rescanning pa ...
, Jeff Moyer
, (Wed Sep 3, 11:17 am)
Re: [PATCH 4/6] SCSI sd driver calls revalidate_disk wrapper.
, Jeff Moyer
, (Wed Sep 3, 11:17 am)
Re: [PATCH 5/6] Added flush_disk to factor out common buff ...
, Jeff Moyer
, (Wed Sep 3, 11:19 am)
Re: [PATCH 6/6] Call flush_disk() after detecting an onlin ...
, Jeff Moyer
, (Wed Sep 3, 11:20 am)
Re: [PATCH 5/6] Added flush_disk to factor out common buff ...
, Andrew Patterson
, (Wed Sep 3, 9:16 pm)
Re: [PATCH 0/6] detect online disk resize
, Jens Axboe
, (Thu Sep 4, 12:26 am)
Re: [PATCH 5/6] Added flush_disk to factor out common buff ...
, Jeff Moyer
, (Thu Sep 4, 6:13 am)
Re: [PATCH 0/6] detect online disk resize
, Andrew Patterson
, (Thu Sep 4, 7:25 am)
Re: [PATCH 0/6] detect online disk resize
, Jeff Moyer
, (Mon Sep 8, 11:01 am)
Re: [PATCH 0/6] detect online disk resize
, Pasi
, (Tue Sep 9, 12:41 am)
Re: [PATCH 0/6] detect online disk resize
, Vladislav Bolkhovitin
, (Wed Sep 24, 8:23 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate