X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A92963858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1712109138; bh=nrlJgTKtCBNgRfl/tSmaEDZmJ/O2R2E7mn+/7xdI39I=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=yGcrO6CPGzchgHU2ovp2Kwcxbkz6IJrtiWE6C96UCe+9HUoiCEBKDECRHmUZD+u9g hEoocW69CE6ee+ghkKZQNzL+nEUzNgOYshO328cbOlPW/bZSTRRz+7Z37prHQA9TBa SP8haptIjNreB8gL3wLLkiJOPSdLGV69m7Sn00q0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C0FA3858D39 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9C0FA3858D39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712109118; cv=none; b=I2zCoOdHs+IlGDNgvdz8k2xyF2NH4d2zf0SUkhVTpEkCFksOmy0Afv2dmp6McvUwJyP54mQI5p6w2caS4G+i1u8UjbPPPjGIkbRfjVTjFGwVsbCxcOEHsxLH+B2v9t8oEqVR27R+hNhnXJtePIwDyjxZZSvkQwSnILCeubzhPq8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712109118; c=relaxed/simple; bh=atBIRBj4Zrq8JPz6FQEbRbtCqG6RZMQaSsRdLgi2BPk=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=wfdc5mxUx9qPLeMvG5YP+kE/WbEy4hglDBxGxmLeLO1hh0eAjEQ8+nuST6tC0LuM2jEyLS8Y16C+z+NXaiz8sTLpETMbrrAyY1Io29Xy4jvtBDiHr+K1fJ3wtLjXS3Ms4i2rdv7j4QwMjVMVJOBP29ag8mVuHK+j+UfBa394PFQ= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712109109; x=1712713909; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=IS6Y0pTqLh37LeTRuavkVeuS6VqT/K10DnFq5am2hc8=; b=XV4FRcdtFgIwi+Hzpp9oTmWVfgsOuRHiz7IuRoXidRrns8s9x9CIe1kp52uRPaozwD RqE4K+rNNb3qzbgFvvaQ0v+J5mGHxXzdpcP15pjc7dpD+jdvWNUuqKDwMtyLd97J6TCb NjYUgQN9mzhs6Ts4RCZawNIjdw2sA7W8Xum8YDb0q58Pqdo0lYje7a/KDM4y7rr+4Tdw +h8QE3EgI3c8NZURAj901+Xdq5oQA3goRaem0Okt10lyd83+lJ80hYLrV50L6C/IDQb9 KSzxF3T/Ni4NmWYL7U3lryabCLGS+E9e4NXVU3ESE+dcM8qts41nKk3//XMTBnaMasSe gDxA== X-Gm-Message-State: AOJu0Yx4S+YByOgvE790tuDxy6qI4n1Tuo0cuZ+KmFa1/w2euRkIeYfi WT+Ouvat67K6XhZ6MBo8ohmCbX7R/vOQWXlPTOxeHx85ZgpXkMMTcvz77qig4q9EsS44NATDs05 zqBWldSUs1C9XcJBgcPXFZ7LhK072/7QtXqw= X-Google-Smtp-Source: AGHT+IFMolqproOTmmdbxQ6t9GF+/HfyRNih1MSj8HQOjOu2zY0jRj5Y/ICbAxBZBN0Ke4xdHp7x3UXsHMHbChQ/mcU= X-Received: by 2002:a17:906:e94:b0:a4e:5c59:624 with SMTP id p20-20020a1709060e9400b00a4e5c590624mr779506ejf.33.1712109108874; Tue, 02 Apr 2024 18:51:48 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 3 Apr 2024 03:51:37 +0200 Message-ID: Subject: Implementing /bin/ionice, ioprio_set() support with FILE_IO_PRIORITY_HINT_INFO? To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Martin Wege via Cygwin Reply-To: Martin Wege Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Hello, could Cygwin implement support for /usr/bin/ionice and ioprio_set() via FILE_IO_PRIORITY_HINT_INFO? So basically implement ioprio_set() to store the value per process, and for each file open() call this: FILE_IO_PRIORITY_HINT_INFO priorityHint={0}; priorityHint.PriorityHint = ioniceprio2WinIoPriorityHint(ioniceprio); result = SetFileInformationByHandle( hFile, FileIoPriorityHintInfo, &priorityHint, sizeof(PriorityHint)); NTFS and ReFS support FILE_IO_PRIORITY_HINT_INFO Thanks, Martin -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple