From nobody Fri Nov 14 16:56:49 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1762279687; cv=none; d=zohomail.com; s=zohoarc; b=KQHDKb01KkHHNHPT/e11dUnlivcpQxvf0GRQen8c945nEGAjYmg93gOMr2POqkE5RDv/UWbKcnIrtRF05/YWSWb1B/MMhy5ewmaT+sa04d36AF8LJcswlREgJWXRbZRDEcbrn7il8t2k0M58CiGKBrkjB697Ju8inJtLp4Bha2Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1762279687; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=e3Twk6+8ae4PwFeo7u1w75GEqQK8dI54LHe5+TXEM+Q=; b=UFqP086XHgzwsKn5/a/2XrNqDrW2iUVMTs6Hm8Ubdoy/AjX0UKJHbgLu/wP3ic+rb6hynHt8WiPvNCUs9CF2UMcU+Lv33W42QfkeEMdh+RKWaXUzFs553fDwDvb5uWbmVVTrXB2uJgOvdphFFCVC0LqQeBGT4CxeBjgfHCWWp7E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1762279687810329.7654712069493; Tue, 4 Nov 2025 10:08:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vGLL8-0006r7-NA; Tue, 04 Nov 2025 13:01:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vGLFF-0001CM-Q9 for qemu-devel@nongnu.org; Tue, 04 Nov 2025 12:55:07 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vGLFB-0006oh-TR for qemu-devel@nongnu.org; Tue, 04 Nov 2025 12:55:01 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-393-7KLqlofRMpaNu7QlC1cMkg-1; Tue, 04 Nov 2025 12:54:54 -0500 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6856B1955F45; Tue, 4 Nov 2025 17:54:53 +0000 (UTC) Received: from merkur.fritz.box (unknown [10.45.226.47]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 250931800451; Tue, 4 Nov 2025 17:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762278895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e3Twk6+8ae4PwFeo7u1w75GEqQK8dI54LHe5+TXEM+Q=; b=aMTdg3e0EG4hc4AMTpwekjsOMyCm1nolGIzq1Pkdm4UySxzQxjrq3cGeuSznM8cIvXKA6H yk7yiExyjG7VeAe0pbFt6elKVVUIVCYAp3MHEb64X2YIAnNaWgflFW+Z3SicBPJ+UQJVze ijhfs5Hz1eidUmucyQJmavkaXgY8z0c= X-MC-Unique: 7KLqlofRMpaNu7QlC1cMkg-1 X-Mimecast-MFC-AGG-ID: 7KLqlofRMpaNu7QlC1cMkg_1762278893 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, qemu-devel@nongnu.org Subject: [PULL 16/27] block: replace TABs with space Date: Tue, 4 Nov 2025 18:54:04 +0100 Message-ID: <20251104175415.525388-17-kwolf@redhat.com> In-Reply-To: <20251104175415.525388-1-kwolf@redhat.com> References: <20251104175415.525388-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.788, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1762279697020158500 Content-Type: text/plain; charset="utf-8" From: Yeqi Fu Bring the block files in line with the QEMU coding style, with spaces for indentation. This patch partially resolves the issue 371. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/371 Signed-off-by: Yeqi Fu Message-ID: <20230325085224.23842-1-fufuyqqqqqq@gmail.com> [thuth: Rebased the patch to the current master branch] Signed-off-by: Thomas Huth Message-ID: <20251007163511.334178-1-thuth@redhat.com> [kwolf: Fixed up vertical alignemnt] Signed-off-by: Kevin Wolf --- include/block/nbd.h | 2 +- block/bochs.c | 14 +++++------ block/file-posix.c | 58 ++++++++++++++++++++++----------------------- block/file-win32.c | 38 ++++++++++++++--------------- block/qcow.c | 10 ++++---- 5 files changed, 61 insertions(+), 61 deletions(-) diff --git a/include/block/nbd.h b/include/block/nbd.h index 92987c76fd..ab40842da9 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -296,7 +296,7 @@ enum { NBD_CMD_BLOCK_STATUS =3D 7, }; =20 -#define NBD_DEFAULT_PORT 10809 +#define NBD_DEFAULT_PORT 10809 =20 /* Maximum size of a single READ/WRITE data buffer */ #define NBD_MAX_BUFFER_SIZE (32 * 1024 * 1024) diff --git a/block/bochs.c b/block/bochs.c index b099fb52fe..bfda88017d 100644 --- a/block/bochs.c +++ b/block/bochs.c @@ -300,15 +300,15 @@ static void bochs_close(BlockDriverState *bs) } =20 static BlockDriver bdrv_bochs =3D { - .format_name =3D "bochs", - .instance_size =3D sizeof(BDRVBochsState), - .bdrv_probe =3D bochs_probe, - .bdrv_open =3D bochs_open, + .format_name =3D "bochs", + .instance_size =3D sizeof(BDRVBochsState), + .bdrv_probe =3D bochs_probe, + .bdrv_open =3D bochs_open, .bdrv_child_perm =3D bdrv_default_perms, .bdrv_refresh_limits =3D bochs_refresh_limits, - .bdrv_co_preadv =3D bochs_co_preadv, - .bdrv_close =3D bochs_close, - .is_format =3D true, + .bdrv_co_preadv =3D bochs_co_preadv, + .bdrv_close =3D bochs_close, + .is_format =3D true, }; =20 static void bdrv_bochs_init(void) diff --git a/block/file-posix.c b/block/file-posix.c index 8b7c02d19a..12d12970fa 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -133,7 +133,7 @@ #define FTYPE_FILE 0 #define FTYPE_CD 1 =20 -#define MAX_BLOCKSIZE 4096 +#define MAX_BLOCKSIZE 4096 =20 /* Posix file locking bytes. Libvirt takes byte 0, we start from higher by= tes, * leaving a few more bytes for its future use. */ @@ -4562,20 +4562,20 @@ static void coroutine_fn cdrom_co_lock_medium(Block= DriverState *bs, bool locked) } =20 static BlockDriver bdrv_host_cdrom =3D { - .format_name =3D "host_cdrom", - .protocol_name =3D "host_cdrom", - .instance_size =3D sizeof(BDRVRawState), - .bdrv_needs_filename =3D true, - .bdrv_probe_device =3D cdrom_probe_device, - .bdrv_parse_filename =3D cdrom_parse_filename, - .bdrv_open =3D cdrom_open, - .bdrv_close =3D raw_close, - .bdrv_reopen_prepare =3D raw_reopen_prepare, - .bdrv_reopen_commit =3D raw_reopen_commit, - .bdrv_reopen_abort =3D raw_reopen_abort, - .bdrv_co_create_opts =3D bdrv_co_create_opts_simple, - .create_opts =3D &bdrv_create_opts_simple, - .mutable_opts =3D mutable_opts, + .format_name =3D "host_cdrom", + .protocol_name =3D "host_cdrom", + .instance_size =3D sizeof(BDRVRawState), + .bdrv_needs_filename =3D true, + .bdrv_probe_device =3D cdrom_probe_device, + .bdrv_parse_filename =3D cdrom_parse_filename, + .bdrv_open =3D cdrom_open, + .bdrv_close =3D raw_close, + .bdrv_reopen_prepare =3D raw_reopen_prepare, + .bdrv_reopen_commit =3D raw_reopen_commit, + .bdrv_reopen_abort =3D raw_reopen_abort, + .bdrv_co_create_opts =3D bdrv_co_create_opts_simple, + .create_opts =3D &bdrv_create_opts_simple, + .mutable_opts =3D mutable_opts, .bdrv_co_invalidate_cache =3D raw_co_invalidate_cache, =20 .bdrv_co_preadv =3D raw_co_preadv, @@ -4688,20 +4688,20 @@ static void coroutine_fn cdrom_co_lock_medium(Block= DriverState *bs, bool locked) } =20 static BlockDriver bdrv_host_cdrom =3D { - .format_name =3D "host_cdrom", - .protocol_name =3D "host_cdrom", - .instance_size =3D sizeof(BDRVRawState), - .bdrv_needs_filename =3D true, - .bdrv_probe_device =3D cdrom_probe_device, - .bdrv_parse_filename =3D cdrom_parse_filename, - .bdrv_open =3D cdrom_open, - .bdrv_close =3D raw_close, - .bdrv_reopen_prepare =3D raw_reopen_prepare, - .bdrv_reopen_commit =3D raw_reopen_commit, - .bdrv_reopen_abort =3D raw_reopen_abort, - .bdrv_co_create_opts =3D bdrv_co_create_opts_simple, - .create_opts =3D &bdrv_create_opts_simple, - .mutable_opts =3D mutable_opts, + .format_name =3D "host_cdrom", + .protocol_name =3D "host_cdrom", + .instance_size =3D sizeof(BDRVRawState), + .bdrv_needs_filename =3D true, + .bdrv_probe_device =3D cdrom_probe_device, + .bdrv_parse_filename =3D cdrom_parse_filename, + .bdrv_open =3D cdrom_open, + .bdrv_close =3D raw_close, + .bdrv_reopen_prepare =3D raw_reopen_prepare, + .bdrv_reopen_commit =3D raw_reopen_commit, + .bdrv_reopen_abort =3D raw_reopen_abort, + .bdrv_co_create_opts =3D bdrv_co_create_opts_simple, + .create_opts =3D &bdrv_create_opts_simple, + .mutable_opts =3D mutable_opts, =20 .bdrv_co_preadv =3D raw_co_preadv, .bdrv_co_pwritev =3D raw_co_pwritev, diff --git a/block/file-win32.c b/block/file-win32.c index af9aea631c..0efb609e1d 100644 --- a/block/file-win32.c +++ b/block/file-win32.c @@ -741,16 +741,16 @@ static QemuOptsList raw_create_opts =3D { }; =20 BlockDriver bdrv_file =3D { - .format_name =3D "file", - .protocol_name =3D "file", - .instance_size =3D sizeof(BDRVRawState), - .bdrv_needs_filename =3D true, - .bdrv_parse_filename =3D raw_parse_filename, - .bdrv_open =3D raw_open, - .bdrv_refresh_limits =3D raw_probe_alignment, - .bdrv_close =3D raw_close, - .bdrv_co_create_opts =3D raw_co_create_opts, - .bdrv_has_zero_init =3D bdrv_has_zero_init_1, + .format_name =3D "file", + .protocol_name =3D "file", + .instance_size =3D sizeof(BDRVRawState), + .bdrv_needs_filename =3D true, + .bdrv_parse_filename =3D raw_parse_filename, + .bdrv_open =3D raw_open, + .bdrv_refresh_limits =3D raw_probe_alignment, + .bdrv_close =3D raw_close, + .bdrv_co_create_opts =3D raw_co_create_opts, + .bdrv_has_zero_init =3D bdrv_has_zero_init_1, =20 .bdrv_reopen_prepare =3D raw_reopen_prepare, .bdrv_reopen_commit =3D raw_reopen_commit, @@ -914,15 +914,15 @@ done: } =20 static BlockDriver bdrv_host_device =3D { - .format_name =3D "host_device", - .protocol_name =3D "host_device", - .instance_size =3D sizeof(BDRVRawState), - .bdrv_needs_filename =3D true, - .bdrv_parse_filename =3D hdev_parse_filename, - .bdrv_probe_device =3D hdev_probe_device, - .bdrv_open =3D hdev_open, - .bdrv_close =3D raw_close, - .bdrv_refresh_limits =3D hdev_refresh_limits, + .format_name =3D "host_device", + .protocol_name =3D "host_device", + .instance_size =3D sizeof(BDRVRawState), + .bdrv_needs_filename =3D true, + .bdrv_parse_filename =3D hdev_parse_filename, + .bdrv_probe_device =3D hdev_probe_device, + .bdrv_open =3D hdev_open, + .bdrv_close =3D raw_close, + .bdrv_refresh_limits =3D hdev_refresh_limits, =20 .bdrv_aio_preadv =3D raw_aio_preadv, .bdrv_aio_pwritev =3D raw_aio_pwritev, diff --git a/block/qcow.c b/block/qcow.c index 8a3e7591a9..b442bfe835 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -1184,11 +1184,11 @@ static const char *const qcow_strong_runtime_opts[]= =3D { }; =20 static BlockDriver bdrv_qcow =3D { - .format_name =3D "qcow", - .instance_size =3D sizeof(BDRVQcowState), - .bdrv_probe =3D qcow_probe, - .bdrv_open =3D qcow_open, - .bdrv_close =3D qcow_close, + .format_name =3D "qcow", + .instance_size =3D sizeof(BDRVQcowState), + .bdrv_probe =3D qcow_probe, + .bdrv_open =3D qcow_open, + .bdrv_close =3D qcow_close, .bdrv_child_perm =3D bdrv_default_perms, .bdrv_reopen_prepare =3D qcow_reopen_prepare, .bdrv_co_create =3D qcow_co_create, --=20 2.51.1