mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-28 14:10:34 +00:00
fdisk applet by Vladimir N. Oleynik
This commit is contained in:
parent
0ff941e1c3
commit
441e7efc72
3
AUTHORS
3
AUTHORS
@ -67,7 +67,8 @@ Glenn McGrath <bug1@optushome.com.au>
|
||||
ar, dpkg, dpkg-deb
|
||||
|
||||
Vladimir Oleynik <dzo@simtreas.ru>
|
||||
cmdedit; xargs(current); ports: ash, crond, stty, traceroute, telnetd, top;
|
||||
cmdedit; xargs(current);
|
||||
ports: ash, crond, fdisk, stty, traceroute, telnetd, top;
|
||||
locale, various fixes
|
||||
and irreconcilable critic of everything not perfect.
|
||||
|
||||
|
@ -113,7 +113,8 @@ Glenn McGrath <bug1@netconnect.com.au>
|
||||
|
||||
Vladimir Oleynik <dzo@simtreas.ru>
|
||||
|
||||
cmdedit, xargs(current); ports: ash, crond, stty, traceroute, telnetd, top;
|
||||
cmdedit, xargs(current);
|
||||
ports: ash, crond, fdisk, stty, traceroute, telnetd, top;
|
||||
locale, various fixes
|
||||
and irreconcilable critic of everything not perfect.
|
||||
|
||||
@ -167,4 +168,4 @@ Enrique Zanardi <ezanardi@ull.es>
|
||||
|
||||
=cut
|
||||
|
||||
# $Id: busybox_footer.pod,v 1.8 2002/11/10 21:47:15 bug1 Exp $
|
||||
# $Id: busybox_footer.pod,v 1.9 2002/11/26 22:00:19 bug1 Exp $
|
||||
|
@ -58,10 +58,10 @@ Currently defined functions include:
|
||||
addgroup, adduser, adjtimex, ar, awk, basename, busybox, cat, chgrp,
|
||||
chmod, chown, chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cut,
|
||||
date, dc, dd, deallocvt, deluser, df, dirname, dmesg, dos2unix, dpkg,
|
||||
dpkg-deb, du, dumpkmap, dutmp, echo, expr, false, fbset, fdflush, find,
|
||||
free, freeramdisk, fsck.minix, getopt, getty, grep, gunzip, gzip, halt,
|
||||
head, hostid, hostname, id, ifconfig, init, insmod, kill, killall, klogd,
|
||||
length, ln, loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
|
||||
dpkg-deb, du, dumpkmap, dutmp, echo, expr, false, fbset, fdflush, fdisk,
|
||||
find, free, freeramdisk, fsck.minix, getopt, getty, grep, gunzip, gzip,
|
||||
halt, head, hostid, hostname, id, ifconfig, init, insmod, kill, killall,
|
||||
klogd, length, ln, loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
|
||||
makedevs, md5sum, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, more,
|
||||
mount, mt, mv, nc, netstat, nslookup, ping, pivot_root, poweroff, printf,
|
||||
ps, pwd, rdate, readlink, reboot, renice, reset, rm, rmdir, rmmod, route,
|
||||
|
@ -185,6 +185,9 @@
|
||||
#ifdef CONFIG_FDFLUSH
|
||||
APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
#ifdef CONFIG_FDISK
|
||||
APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
#ifdef CONFIG_FIND
|
||||
APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
|
@ -521,6 +521,17 @@
|
||||
#define fdflush_full_usage \
|
||||
"Forces floppy disk drive to detect disk change"
|
||||
|
||||
#define fdisk_trivial_usage \
|
||||
"[-l] [-v] [-b SSZ] [-u] DISK"
|
||||
#define fdisk_full_usage \
|
||||
"Change partition table\n" \
|
||||
"Options:\n" \
|
||||
"-l List partition table(s)\n" \
|
||||
"-u Give Start and End in sector (instead of cylinder) units\n" \
|
||||
"-s PARTITION Give partition size(s) in blocks\n" \
|
||||
"-b 2048: (for certain MO disks) use 2048-byte sectors\n" \
|
||||
"-v Give fdisk version\n"
|
||||
|
||||
#ifdef CONFIG_FEATURE_FIND_TYPE
|
||||
#define USAGE_FIND_TYPE(a) a
|
||||
#else
|
||||
|
@ -26,6 +26,7 @@ UTILLINUX-:=
|
||||
UTILLINUX-$(CONFIG_DMESG) += dmesg.o
|
||||
UTILLINUX-$(CONFIG_FBSET) += fbset.o
|
||||
UTILLINUX-$(CONFIG_FDFLUSH) += fdflush.o
|
||||
UTILLINUX-$(CONFIG_FDISK) += fdisk.o
|
||||
UTILLINUX-$(CONFIG_FREERAMDISK) += freeramdisk.o
|
||||
UTILLINUX-$(CONFIG_FSCK_MINIX) += fsck_minix.o
|
||||
UTILLINUX-$(CONFIG_GETOPT) += getopt.o
|
||||
|
@ -14,6 +14,14 @@ if [ "$CONFIG_FBSET" = "y" ]; then
|
||||
bool ' Turn on fbset readmode support' CONFIG_FEATURE_FBSET_READMODE
|
||||
fi
|
||||
bool 'fdflush' CONFIG_FDFLUSH
|
||||
bool 'fdisk' CONFIG_FDISK
|
||||
if [ "$CONFIG_FDISK" = "y" ]; then
|
||||
bool ' Support AIX disklabels' CONFIG_FEATURE_AIX_LABEL
|
||||
bool ' Support SGI disklabels' CONFIG_FEATURE_SGI_LABEL
|
||||
bool ' Support SUN disklabels' CONFIG_FEATURE_SUN_LABEL
|
||||
bool ' Support BSD disklabels' CONFIG_FEATURE_OSF_LABEL
|
||||
bool ' Support expext mode' CONFIG_FEATURE_FDISK_ADVANCED
|
||||
fi
|
||||
bool 'freeramdisk' CONFIG_FREERAMDISK
|
||||
bool 'fsck_minix' CONFIG_FSCK_MINIX
|
||||
bool 'mkfs_minix' CONFIG_MKFS_MINIX
|
||||
|
5899
util-linux/fdisk.c
Normal file
5899
util-linux/fdisk.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user