summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.c
Commit message (Collapse)AuthorAgeFilesLines
...
* blkdiscard: new commandKarel Zak2012-09-271-35/+119
| | | | | | | | | | | Add to fstrim(8) code to support new discard BLKDISCARD and BLKSECDISCARD ioctls for block devices. The new command is only symlink to fstrim(8) as the both utils share some code and the basic ideas. Based on patch from Lukas Czerner <lczerner@redhat.com>. Signed-off-by: Karel Zak <kzak@redhat.com>
* translation: unify file open error messagesSami Kerola2012-07-161-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* translation: unify stat error messagesSami Kerola2012-07-161-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* sys-utils: verify writing to streams was successfulSami Kerola2012-04-041-0/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fstrim: add --version and align with howto-usage-function.txtSami Kerola2012-03-301-9/+12
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fstrim: use strtosize_or_err()Karel Zak2012-03-301-10/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: fix section number in referral to manpagePetr Uzel2011-10-171-1/+1
| | | | | | | Reported-by: Roeland Jansen <roeland@linux-it.nl> Addresses: https://bugzilla.novell.com/show_bug.cgi?id=723877 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* fstrim: cleanup usage()Karel Zak2011-08-161-6/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: add some guiding comments for translatorsBenno Schulenberg2011-08-021-0/+1
| | | | | | These are picked up by xgettext and put in the POT file. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fstrim: correct mistaken grammar in one messageBenno Schulenberg2011-08-021-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fstrim, setarch: replace error() with err()Francesco Cosoleto2011-06-081-7/+3Star
| | | | | | | | | | This should improve a bit the portability as error() is a GNU extension and util-linux provides fallbacks for err.h functions. Fix compilation with icc, broken due to a reference to `__builtin_va_arg_pack' in error.h using the -gcc default option. Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* fstrim: cast from __u64 to standard C typesKarel Zak2011-06-081-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* move struct option to .rodataKarel Zak2011-03-031-1/+1
| | | | | | | It does not make sense to have writable large arrays of "struct option" on the stack. Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: fix three typos in message strings and improve consistencyBenno Schulenberg2011-02-161-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* build-sys: provide alternatives for err, errx, warn and warnxFabian Groffen2011-02-141-1/+1
| | | | | | | | Solaris lacks err, errx, warn and warnx. This also means the err.h header doesn't exist. Removed err.h include from all files, and included err.h from c.h instead if it exists, otherwise alternatives are provided. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* fstrim: fix typoKarel Zak2010-11-291-1/+1
| | | | | Reported-by: Jeroen Oortwijn <oortwijn@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: add new commandLukas Czerner2010-11-261-0/+154
fstrim is used on a mounted filesystem to discard (or "trim") blocks which are not in use by the filesystem. This is useful for solid-state drives (SSDs) and thinly-provisioned storage Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>