From patchwork Fri Dec 20 00:58:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ronnie Sahlberg X-Patchwork-Id: 1213848 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47f9P62nj4z9sPW for ; Fri, 20 Dec 2019 11:59:06 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727024AbfLTA7F (ORCPT ); Thu, 19 Dec 2019 19:59:05 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:48041 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726998AbfLTA7F (ORCPT ); Thu, 19 Dec 2019 19:59:05 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-185-Cho6Wm_RMju_IBW3U_YTNw-1; Thu, 19 Dec 2019 19:59:02 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8A44A800D48 for ; Fri, 20 Dec 2019 00:59:01 +0000 (UTC) Received: from test1135.test.redhat.com (vpn2-54-93.bne.redhat.com [10.64.54.93]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E0A97A5EF; Fri, 20 Dec 2019 00:59:00 +0000 (UTC) From: Ronnie Sahlberg To: linux-cifs Cc: Ronnie Sahlberg Subject: [PATCH] smbinfo: remove invalid arguments to ioctl method Date: Fri, 20 Dec 2019 10:58:48 +1000 Message-Id: <20191220005848.22327-1-lsahlber@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: Cho6Wm_RMju_IBW3U_YTNw-1 X-Mimecast-Spam-Score: 0 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Signed-off-by: Ronnie Sahlberg --- smbinfo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smbinfo b/smbinfo index 1be82c7..ee774d3 100755 --- a/smbinfo +++ b/smbinfo @@ -443,7 +443,7 @@ def cmd_filefsfullsizeinfo(args): qi = QueryInfoStruct(info_type=0x2, file_info_class=7, input_buffer_length=32) try: fd = os.open(args.file, os.O_RDONLY) - total, caller_avail, actual_avail, sec_per_unit, byte_per_sec = qi.ioctl(fd, CIFS_QUERY_INFO, '