From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265297AbTF1RGn (ORCPT ); Sat, 28 Jun 2003 13:06:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265298AbTF1RGn (ORCPT ); Sat, 28 Jun 2003 13:06:43 -0400 Received: from nat9.steeleye.com ([65.114.3.137]:53252 "EHLO fenric.sc.steeleye.com") by vger.kernel.org with ESMTP id S265297AbTF1RGk (ORCPT ); Sat, 28 Jun 2003 13:06:40 -0400 Date: Sat, 28 Jun 2003 13:20:55 -0400 (EDT) From: Paul Clements Reply-To: Paul.Clements@steeleye.com To: linux-kernel@vger.kernel.org cc: Andrew Morton , Pavel Machek , ldl@aros.net Subject: [PATCH] nbd: maintain compatibility with existing nbd tools In-Reply-To: <3EFA1F7E.2080602@aros.net> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="296485894-1381922393-1056820855=:764" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --296485894-1381922393-1056820855=:764 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 25 Jun 2003, Lou Langholtz wrote: > [ ... ] In the meantime, the nbd-client tool currently can't correctly set > the size of the device and either that needs to be worked around in the > driver (I'd done that in the original jumbo patch), or the nbd-client > tool needs to be updated (the patch I'd mailed out for nbd-client works > around the sizing issue by re-opening the nbd). To be clear, that's not > something any of the changes that have gone in so far broke nor address. > It's a consequence of how bd_set_size() is called in fs/block_dev.c > do_open(). And here's the (tiny) patch for nbd to maintain compatibility with the existing nbd-client tool. Compiled and tested on a couple machines. Please apply. Thanks, Paul --296485894-1381922393-1056820855=:764 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="nbd_2_5_compat.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: nb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