This is a fork of ionice
from util-linux
It's a drop-in replacement for ionice
in just 300 lines of C and under a single open source license.
- Support for obsolete systems is removed.
- Translated output messages are removed.
- Other than that it's a fully featured drop-in replacement for
ionice
. - The resulting executable is only 11k when built with GCC 11 on Linux (and then stripped with
sstrip
). util-linux
uses several open source licenses across many different files. This fork is only based on files licensed under GPL2.tinyionice
is only GPL2 licensed.
gcc -O2 -fPIC -fstack-protector-strong -D_GNU_SOURCE -s -z norelro main.c -o tinyionice
make
With cxx
cxx tiny
As root
, with sudo
or doas
:
sudo install -Dm755 tinyionice /usr/bin/tinyionice
make install
The original source code of ionice
is dual-licenced under either GPL2:
Copyright (C) 2004 Jens Axboe <jens@axboe.dk>
Released under the terms of the GNU General Public License version 2
Or under No copyright is claimed. This code is in the public domain; do with it what you wish
:
Copyright (C) 2010 Karel Zak <kzak@redhat.com>
Copyright (C) 2010 Davidlohr Bueso <dave@gnu.org>
No copyright is claimed. This code is in the public domain; do with it what you wish.
I wish to relicense all code under these terms as GPL2.
The changes made in 2021 and beyond are:
Copyright (C) 2021-2022 Alexander F. Rødseth <xyproto@archlinux.org>
Released under the terms of the GNU General Public License version 2
The entire code of tinyionice
is now released under GPL2.
The full license text is in the COPYING
file.
- Version: 1.0.4
- License: GPL2