fdisk applet by Vladimir N. Oleynik

This commit is contained in:
Glenn L McGrath 2002-11-26 22:00:21 +00:00
parent 0ff941e1c3
commit 441e7efc72
8 changed files with 5931 additions and 7 deletions

View File

@ -67,7 +67,8 @@ Glenn McGrath <bug1@optushome.com.au>
ar, dpkg, dpkg-deb ar, dpkg, dpkg-deb
Vladimir Oleynik <dzo@simtreas.ru> 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 locale, various fixes
and irreconcilable critic of everything not perfect. and irreconcilable critic of everything not perfect.

View File

@ -113,7 +113,8 @@ Glenn McGrath <bug1@netconnect.com.au>
Vladimir Oleynik <dzo@simtreas.ru> 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 locale, various fixes
and irreconcilable critic of everything not perfect. and irreconcilable critic of everything not perfect.
@ -167,4 +168,4 @@ Enrique Zanardi <ezanardi@ull.es>
=cut =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 $

View File

@ -58,10 +58,10 @@ Currently defined functions include:
addgroup, adduser, adjtimex, ar, awk, basename, busybox, cat, chgrp, addgroup, adduser, adjtimex, ar, awk, basename, busybox, cat, chgrp,
chmod, chown, chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cut, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cut,
date, dc, dd, deallocvt, deluser, df, dirname, dmesg, dos2unix, dpkg, date, dc, dd, deallocvt, deluser, df, dirname, dmesg, dos2unix, dpkg,
dpkg-deb, du, dumpkmap, dutmp, echo, expr, false, fbset, fdflush, find, dpkg-deb, du, dumpkmap, dutmp, echo, expr, false, fbset, fdflush, fdisk,
free, freeramdisk, fsck.minix, getopt, getty, grep, gunzip, gzip, halt, find, free, freeramdisk, fsck.minix, getopt, getty, grep, gunzip, gzip,
head, hostid, hostname, id, ifconfig, init, insmod, kill, killall, klogd, halt, head, hostid, hostname, id, ifconfig, init, insmod, kill, killall,
length, ln, loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, klogd, length, ln, loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
makedevs, md5sum, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, more, makedevs, md5sum, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, more,
mount, mt, mv, nc, netstat, nslookup, ping, pivot_root, poweroff, printf, mount, mt, mv, nc, netstat, nslookup, ping, pivot_root, poweroff, printf,
ps, pwd, rdate, readlink, reboot, renice, reset, rm, rmdir, rmmod, route, ps, pwd, rdate, readlink, reboot, renice, reset, rm, rmdir, rmmod, route,

View File

@ -185,6 +185,9 @@
#ifdef CONFIG_FDFLUSH #ifdef CONFIG_FDFLUSH
APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER) APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif #endif
#ifdef CONFIG_FDISK
APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_FIND #ifdef CONFIG_FIND
APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif #endif

View File

@ -521,6 +521,17 @@
#define fdflush_full_usage \ #define fdflush_full_usage \
"Forces floppy disk drive to detect disk change" "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 #ifdef CONFIG_FEATURE_FIND_TYPE
#define USAGE_FIND_TYPE(a) a #define USAGE_FIND_TYPE(a) a
#else #else

View File

@ -26,6 +26,7 @@ UTILLINUX-:=
UTILLINUX-$(CONFIG_DMESG) += dmesg.o UTILLINUX-$(CONFIG_DMESG) += dmesg.o
UTILLINUX-$(CONFIG_FBSET) += fbset.o UTILLINUX-$(CONFIG_FBSET) += fbset.o
UTILLINUX-$(CONFIG_FDFLUSH) += fdflush.o UTILLINUX-$(CONFIG_FDFLUSH) += fdflush.o
UTILLINUX-$(CONFIG_FDISK) += fdisk.o
UTILLINUX-$(CONFIG_FREERAMDISK) += freeramdisk.o UTILLINUX-$(CONFIG_FREERAMDISK) += freeramdisk.o
UTILLINUX-$(CONFIG_FSCK_MINIX) += fsck_minix.o UTILLINUX-$(CONFIG_FSCK_MINIX) += fsck_minix.o
UTILLINUX-$(CONFIG_GETOPT) += getopt.o UTILLINUX-$(CONFIG_GETOPT) += getopt.o

View File

@ -14,6 +14,14 @@ if [ "$CONFIG_FBSET" = "y" ]; then
bool ' Turn on fbset readmode support' CONFIG_FEATURE_FBSET_READMODE bool ' Turn on fbset readmode support' CONFIG_FEATURE_FBSET_READMODE
fi fi
bool 'fdflush' CONFIG_FDFLUSH 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 'freeramdisk' CONFIG_FREERAMDISK
bool 'fsck_minix' CONFIG_FSCK_MINIX bool 'fsck_minix' CONFIG_FSCK_MINIX
bool 'mkfs_minix' CONFIG_MKFS_MINIX bool 'mkfs_minix' CONFIG_MKFS_MINIX

5899
util-linux/fdisk.c Normal file

File diff suppressed because it is too large Load Diff