aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkswap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move remaining help text from include/usage.src.hPere Orga2011-04-111-0/+8
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkswap: selinux build fixDenys Vlasenko2011-01-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* libbb: add xfstat functionDenys Vlasenko2010-08-311-2/+1
| | | | | | | | | | | | | | | | function old new delta xfstat - 25 +25 mkfs_ext2_main 2421 2423 +2 mkfs_reiser_main 1197 1194 -3 next 312 307 -5 ar_main 533 522 -11 mkfs_minix_main 2938 2924 -14 mkfs_vfat_main 1511 1495 -16 writeTarFile 272 255 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/6 up/down: 27/-66) Total: -39 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* mkswap: clear 1st kilobyte. Closes bug 1831Denys Vlasenko2010-08-311-2/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: eliminate more aliasing warningsDenys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkXXXX: unify [KBYTES] parameter handling (added it to mkswap)Denys Vlasenko2010-02-011-10/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkswap: add -L LABEL option. closes bug 689.Denys Vlasenko2009-11-031-46/+46
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* util-linux/mkswap.c: fix warningDenys Vlasenko2009-10-151-13/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move generate_uuid from mkswap to libbbVladimir Dronnikov2009-10-151-79/+13
| | | | | Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkswap: separate UUID featureDenys Vlasenko2009-06-191-1/+1
| | | | | Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkswap: accidentally committed wrong patch. fix it upDenys Vlasenko2009-06-191-12/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkswap: improve randomness of UUID generation set version/variant bitsDenys Vlasenko2009-06-191-4/+55
| | | | | | | function old new delta mkswap_main 317 410 +93 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkswap: generate UUID if CONFIG_DESKTOP=y. +110 bytesDenys Vlasenko2009-06-181-3/+28
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite/runtest: remove (last) bashismDenis Vlasenko2008-04-251-1/+1
| | | | | mkswap: fix selinux build
* - fsetfilecon_war is hidden so use fsetfilecon instead.Bernhard Reutner-Fischer2008-04-241-1/+2
| | | | | | Fixes dynamic linking-error: util-linux/lib.a(mkswap.o): In function `mkswap_selinux_setcontext': util-linux/mkswap.c:38: undefined reference to `fsetfilecon_raw'
* mkswap: fix help text to not lie about supported options.Denis Vlasenko2008-02-131-6/+39
| | | | | | mkswap: use uint32, not int, to match kernel. mkswap: optimization: use pre-zeroed buffer
* mkswap: do not do extra seekDenis Vlasenko2008-02-031-0/+2
| | | | | mount: add another mount helper call method
* mkswap, readahead: stop using fdlength, it is reported to be unreliableDenis Vlasenko2008-01-271-2/+4
|
* mkswap: selinux support by KaiGai Kohei <kaigai@ak.jp.nec.com>Denis Vlasenko2007-10-191-1/+44
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer2007-04-041-2/+2
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* hunt down improper include <>, make mkswap output 4Gb+ friendlyDenis Vlasenko2006-11-241-6/+7
|
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-1/+1
| | | | Erik or I are primary copyright holders on.
* whitespace cleanupDenis Vlasenko2006-09-171-1/+1
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-1/+1
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* New mkswap. Small and simple. Might even work. :)Rob Landley2006-07-161-380/+29
|
* Remove "#if 0" content."Robert P. J. Day"2006-07-011-4/+0
|
* Remove warnings caused by #include <sys/mount.h> in platform.h. ApparentlyRob Landley2006-06-161-11/+1
| | | | we redefine a lot of stuff from standard header files...
* - single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer2006-05-191-5/+5
| | | | | - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
* - patch from Denis Vlasenko to add and use bb_xopen3()Bernhard Reutner-Fischer2006-04-131-2/+2
|
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-4/+3
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* - shrink mkswap and make v0 support optional. Thanks also to Tito for his ideas.Bernhard Reutner-Fischer2006-03-291-79/+73
| | | | | | | | http://busybox.net/lists/busybox/2006-March/019326.html 2137 8 28 2173 87d util-linux/mkswap.o.orig 1890 8 28 1926 786 util-linux/mkswap.o.v0+v1 1560 4 28 1592 638 util-linux/mkswap.o.v1
* Patch from Denis Vlasenko turning static const int (which gets emitted intoRob Landley2006-03-101-1/+1
| | | | the busybox binary) into enums (which don't).
* hopefully the last of the annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-2/+2
|
* Patch from David Meggy to make the swap default to the new version if noGlenn L McGrath2003-10-311-5/+1
| | | | version is specified and the kernel is relatively new.
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-23/+23
|
* Apply lash_patch35 from vodz, which brings several nice size_optimizations.Eric Andersen2002-04-061-4/+4
|
* Scrub up some function prototypes.Eric Andersen2001-10-181-1/+1
| | | | -Erik
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-1/+1
| | | | namespace polluting things that really should be static.
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-5/+5
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-16/+16
|
* Cleanup patch from Vladimir N. Oleynik.Eric Andersen2001-01-311-15/+9
| | | | | | * mkdir: remove 3 lines in source code. * mkfs_minix: save 32 bytes, remove 4 bugs. * mkswap: save 64 bytes, remove 1 bug.
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-231-1/+1
|
* Use busybox error handling functions wherever possible.Matt Kraai2000-12-221-9/+4
|