Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

xyproto/tinyionice

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinyionice logo

Tiny I/O Nice

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.

Packaging status

  • 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.

Build

With gcc

gcc -O2 -fPIC -fstack-protector-strong -D_GNU_SOURCE -s -z norelro main.c -o tinyionice

With make

make

With cxx

cxx tiny

Install

As root, with sudo or doas:

Manually

sudo install -Dm755 tinyionice /usr/bin/tinyionice

With make

make install

License

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.

General info

  • Version: 1.0.4
  • License: GPL2

About

Drop-in replacement for ionice in 300 lines of C

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.