From: Martin Wege <martin.l.wege@gmail.com>
To: cygwin@cygwin.com
Subject: Implementing /bin/ionice,ioprio_set() support with FILE_IO_PRIORITY_HINT_INFO?
Date: Wed, 3 Apr 2024 03:51:37 +0200 [thread overview]
Message-ID: <CANH4o6OG8-ewHbxux+ed7FG4Xwe48eiEK_TQe8eQyvY3JVUDBw@mail.gmail.com> (raw)
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
next reply other threads:[~2024-04-03 1:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-03 1:51 Martin Wege [this message]
2024-04-03 8:39 ` Implementing /bin/ionice, ioprio_set() " Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANH4o6OG8-ewHbxux+ed7FG4Xwe48eiEK_TQe8eQyvY3JVUDBw@mail.gmail.com \
--to=martin.l.wege@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).