Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932276AbVLIPYW (ORCPT ); Fri, 9 Dec 2005 10:24:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932314AbVLIPYW (ORCPT ); Fri, 9 Dec 2005 10:24:22 -0500 Received: from mtagate1.de.ibm.com ([195.212.29.150]:59067 "EHLO mtagate1.de.ibm.com") by vger.kernel.org with ESMTP id S932276AbVLIPYO (ORCPT ); Fri, 9 Dec 2005 10:24:14 -0500 Date: Fri, 9 Dec 2005 16:24:12 +0100 From: Martin Schwidefsky To: akpm@osdl.org, horst.hummel@de.ibm.com, linux-kernel@vger.kernel.org Subject: [patch 4/17] s390: BIODASDPRRD ioctl return code. Message-ID: <20051209152412.GE6532@skybase.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1545 Lines: 44 From: Horst Hummel [patch 4/17] s390: BIODASDPRRD ioctl return code. The IOCTL BIODASDPRRD had no return code for 'profiling is inactive' and therefore tunedasd wrote misleading message for request-counter = 0. Introduce return-code EIO for inactive profiling. Signed-off-by: Horst Hummel Signed-off-by: Martin Schwidefsky --- drivers/s390/block/dasd_ioctl.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -urpN linux-2.6/drivers/s390/block/dasd_ioctl.c linux-2.6-patched/drivers/s390/block/dasd_ioctl.c --- linux-2.6/drivers/s390/block/dasd_ioctl.c 2005-10-28 02:02:08.000000000 +0200 +++ linux-2.6-patched/drivers/s390/block/dasd_ioctl.c 2005-12-09 14:24:23.000000000 +0100 @@ -7,7 +7,7 @@ * Bugreports.to..: * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2001 * - * $Revision: 1.47 $ + * $Revision: 1.50 $ * * i/o controls for the dasd driver. */ @@ -352,6 +352,9 @@ dasd_ioctl_read_profile(struct block_dev if (device == NULL) return -ENODEV; + if (dasd_profile_level == DASD_PROFILE_OFF) + return -EIO; + if (copy_to_user((long __user *) args, (long *) &device->profile, sizeof (struct dasd_profile_info_t))) return -EFAULT; - 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/