debian/0000755000000000000000000000000011711756717007203 5ustar debian/postrm0000644000000000000000000000026611703310375010441 0ustar #! /bin/sh set -e #DEBHELPER# if [ "$1" = "purge" ]; then if dpkg-statoverride --list /usr/bin/fdmount >/dev/null; then dpkg-statoverride --remove /usr/bin/fdmount fi fi debian/fdutils.info0000644000000000000000000000002111703310375011506 0ustar doc/fdutils.info debian/rules0000755000000000000000000000102111703310375010240 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v %: dh $@ --with autoreconf override_dh_auto_clean: dh_auto_clean [ ! -f src/Makefile ] || $(MAKE) -C src spotless override_dh_auto_build: dh_auto_build -- all html override_dh_auto_install: dh_auto_install ( cd debian/fdutils && \ mv usr/bin/MAKEFLOPPIES usr/sbin ) override_dh_installman: dh_installman ( cd debian/fdutils/usr/share/man && \ mv man1/makefloppies.1 man8/MAKEFLOPPIES.8 ) debian/README.Debian0000644000000000000000000000322611703310375011232 0ustar Fdutils Fdutils is set of tools to handle floppy disk drives. It includes the following items * superformat: formats high capacity disks of (up to 1992k for high density disks or up to 3984k for extra density disks) * fdmount/fdmountd: automatically mounts/unmounts disks when they are inserted/removed. * xdfcopy: formats, reads and writes OS/2's XDF disks. * MAKEFLOPPIES: creates the floppy devices in /dev * getfdprm: prints the current disk geometry (number of sectors, track and heads etc) * setfdprm: sets the current disk geometry * fdrawcmd: sends raw commands to the floppy driver * floppycontrol: configure the floppy driver * General documentation about the floppy driver Note, that the utilities do not work for USB floppy drives, because these are handled by the system as emulated SCSI disks, and the tools cannot access the floppy controller there. In order to make use of the more exotic floppy formats you may have to create the corresponding device files in /dev/. To do so you can use (as root) the command MAKEFLOPPIES -g which will probe the floppy driver in the kernel and create just the devices your kernel supports. Or you can use MAKEDEV to create a default set of devices. To make full use of fdmount you may want to set the suid bit for the fdmount executable. To do so, you can use the fdutilsconfig script, which is distributed with fdutils. There are some known issues with superformat on non-i386 and devfs systems. If superformat does not work for you, you can try "fdformat" from the util-linux package, instead. Jochen -- Jochen Voss , Wed Feb 25 20:37:24 2004 debian/patches/0000755000000000000000000000000011703310375010615 5ustar debian/patches/superformat-devfs_floppy.patch0000644000000000000000000000236211703310375016706 0ustar Subject: [superformat] Use /dev/floppy/%d instead of /dev/fd%d on devfs-systems Author: Jochen Voss Bug-Debian: http://bugs.debian.org/110225 Last-Update: 2010-05-12 --- a/src/superformat.c +++ b/src/superformat.c @@ -486,6 +486,21 @@ #define DRIVE_DEFAULTS (drive_defaults[drivedesc.type.cmos]) +static int +file_exists (const char *filename) +{ + struct stat buf; + int res; + res = stat (filename, &buf); + if (! res) return 1; + if (res && errno != ENOENT) { + fprintf (stderr, "error: cannot stat %s (%s)\n", + filename, strerror (errno)); + exit (1); + } + return 0; +} + int main(int argc, char **argv) { int nseqs; /* number of sequences used */ @@ -494,7 +509,7 @@ struct params fd[MAX_SECTORS], fd0; int ch,i; short density = DENS_UNKNOWN; - char drivename[10]; + char drivename[15]; int have_geom = 0; int margin=50; @@ -756,7 +771,12 @@ ioctl(fd[0].fd, FDGETPRM, &geometry); have_geom = 1; close(fd[0].fd); - snprintf(drivename,9,"/dev/fd%d", fd[0].drive); + + if (file_exists ("/dev/.devfsd")) { + snprintf(drivename,14,"/dev/floppy/%d", fd[0].drive); + } else { + snprintf(drivename,9,"/dev/fd%d", fd[0].drive); + } fd[0].name = drivename; continue; } debian/patches/documentation-man_hyphens.patch0000644000000000000000000012454311703310375017027 0ustar Subject: Escape hyphens in manpages Get rid of lintian minor warning "hyphen-used-as-minus-sign". Author: Matteo Cypriani Last-Update: 2010-05-12 --- a/doc/diskd.1 +++ b/doc/diskd.1 @@ -74,7 +74,7 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWdiskd [\fR\&\f(CW-d \fIdrive\fR\&\f(CW] [\fR\&\f(CW-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW-e \fIcommand\fR\&\f(CW] +\&\fR\&\f(CWdiskd [\fR\&\f(CW\-d \fIdrive\fR\&\f(CW] [\fR\&\f(CW\-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW\-e \fIcommand\fR\&\f(CW] .fi .in -0.3i .ft R @@ -88,22 +88,22 @@ .SH Warning .PP This program works by switching the motor on for a very short -interval, and then seeking to track -1. This might damage hardware in +interval, and then seeking to track \-1. This might damage hardware in the long run. Amigas, which also use these techniques, are known for having problems with their disk drives no longer spinning up properly after a few month of usage. .PP .SH Options .TP -\&\fR\&\f(CW-d\ \fIdrive\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-d\ \fIdrive\fR\&\f(CW\fR\ Selects the drive to observe for disk insertion. By default, drive 0 (\fR\&\f(CW/dev/fd0\fR) is observed. .TP -\&\fR\&\f(CW-i\ \fIinterval\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-i\ \fIinterval\fR\&\f(CW\fR\ Selects the polling interval. The interval is given in tenths of seconds. Default is 10 (one second). .TP -\&\fR\&\f(CW-e\ \fIcommand\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-e\ \fIcommand\fR\&\f(CW\fR\ Gives the command to be executed when a disk is inserted. If no command is given the program simply exits. Typically, the command mounts the disk. It can be a shell scripts which probes for several --- a/doc/fdmount.1 +++ b/doc/fdmount.1 @@ -72,19 +72,19 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWfdmount [\fR\&\f(CW-l] [\fR\&\f(CW--list] [\fR\&\f(CW-d] [\fR\&\f(CW--daemon] [\fR\&\f(CW--detach] -[\fR\&\f(CW-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW--interval \fIinterval\fR\&\f(CW] [\fR\&\f(CW-o \fImount-options\fR\&\f(CW] -[\fR\&\f(CW-r] [\fR\&\f(CW-readonly] [\fR\&\f(CW-s] [\fR\&\f(CW--sync] [\fR\&\f(CW--nosync] [\fR\&\f(CW--nodev] -[\fR\&\f(CW--nosuid] [\fR\&\f(CW--noexec] [\fR\&\f(CW-f] [\fR\&\f(CW--force] [\fR\&\f(CW-h] [\fR\&\f(CW--help] +\&\fR\&\f(CWfdmount [\fR\&\f(CW\-l] [\fR\&\f(CW\-\-list] [\fR\&\f(CW\-d] [\fR\&\f(CW\-\-daemon] [\fR\&\f(CW\-\-detach] +[\fR\&\f(CW\-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW\-\-interval \fIinterval\fR\&\f(CW] [\fR\&\f(CW\-o \fImount-options\fR\&\f(CW] +[\fR\&\f(CW\-r] [\fR\&\f(CW\-readonly] [\fR\&\f(CW\-s] [\fR\&\f(CW\-\-sync] [\fR\&\f(CW\-\-nosync] [\fR\&\f(CW\-\-nodev] +[\fR\&\f(CW\-\-nosuid] [\fR\&\f(CW\-\-noexec] [\fR\&\f(CW\-f] [\fR\&\f(CW\-\-force] [\fR\&\f(CW\-h] [\fR\&\f(CW\-\-help] [\fIdrivename\fR\&\f(CW] [\fImountpoint\fR\&\f(CW] \&\& -\&\fR\&\f(CWfdumount [\fR\&\f(CW-f] [\fR\&\f(CW--force] [\fIdrivename\fR\&\f(CW] +\&\fR\&\f(CWfdumount [\fR\&\f(CW\-f] [\fR\&\f(CW\-\-force] [\fIdrivename\fR\&\f(CW] \&\& \&\fR\&\f(CWfdlist \&\& -\&\fR\&\f(CWfdmountd [\fR\&\f(CW-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW--interval \fIinterval\fR\&\f(CW] [\fR\&\f(CW-r] -[\fR\&\f(CW-readonly] [\fR\&\f(CW-s] [\fR\&\f(CW--sync] [\fR\&\f(CW--nosync] [\fR\&\f(CW--nodev] -[\fR\&\f(CW--nosuid] [\fR\&\f(CW--noexec] [\fR\&\f(CW--help] [\fIdrivename\fR\&\f(CW] [\fImountpoint\fR\&\f(CW]] +\&\fR\&\f(CWfdmountd [\fR\&\f(CW\-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW\-\-interval \fIinterval\fR\&\f(CW] [\fR\&\f(CW\-r] +[\fR\&\f(CW\-readonly] [\fR\&\f(CW\-s] [\fR\&\f(CW\-\-sync] [\fR\&\f(CW\-\-nosync] [\fR\&\f(CW\-\-nodev] +[\fR\&\f(CW\-\-nosuid] [\fR\&\f(CW\-\-noexec] [\fR\&\f(CW\-\-help] [\fIdrivename\fR\&\f(CW] [\fImountpoint\fR\&\f(CW]] \&\& .fi .in -0.3i @@ -112,42 +112,42 @@ on \fR\&\f(CW\(if/fd[0-7]\(is\fR. In either case, the mount point must be an existing, writable directory. .PP -\&\fBDue to a bug in the floppy driver (?), the polling interval (-i +\&\fBDue to a bug in the floppy driver (?), the polling interval (\-i flag) must be longer than the spindown offset. Thus you need to do (for -example) floppycontrol --spindown 99 before starting fdmountd in daemon +example) floppycontrol \-\-spindown 99 before starting fdmountd in daemon mode\fR .PP .SH Options .IP .TP -\&\fR\&\f(CW-l\ \fI--list\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-l\ \fI\-\-list\fR\&\f(CW\fR\ List all known drives with their symbolic name, type, and mount status. .TP -\&\fR\&\f(CW-d\ \fI--daemon\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-d\ \fI\-\-daemon\fR\&\f(CW\fR\ Run in daemon mode (see below). .TP -\&\fR\&\f(CW--detach\fR\ +\&\fR\&\f(CW\-\-detach\fR\ Runs daemon in background, and detaches it from its tty. Messages produced after the fork are logged to syslog. .TP -\&\fR\&\f(CW-p\ \fIfile\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-p\ \fIfile\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--pidfile\ \fIfile\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-pidfile\ \fIfile\fR\&\f(CW\fR .IP Dumps the process id of the daemon to \&\fIfile\fR. This makes killing the daemon easier: -\&\fR\&\f(CWkill -9 `cat \fIfile\fR\&\f(CW`\fR +\&\fR\&\f(CWkill \-9 `cat \fIfile\fR\&\f(CW`\fR .TP -\&\fR\&\f(CW-i\ \fIinterval\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-i\ \fIinterval\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--interval\ \fIinterval\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-interval\ \fIinterval\fR\&\f(CW\fR Set the polling interval for daemon mode. The unit for \fIinterval\fR is 0.1 seconds, the default value is 10 (i.e. 1 second). .TP -\&\fR\&\f(CW-o\ \fIoptions\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-o\ \fIoptions\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--options\ \fIoptions\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-options\ \fIoptions\fR\&\f(CW\fR Sets filesystem-specific options. So far, these are only available for DOS and Ext2 disks. The following DOS options are supported: \&\fR\&\f(CWcheck\fR, \fR\&\f(CWconv\fR, \fR\&\f(CWdotsOK\fR, \fR\&\f(CWdebug\fR, \fR\&\f(CWfat\fR, @@ -158,34 +158,34 @@ options not applying to the disk that is inserted (because of its filesystem type) are not passed to mount. .TP -\&\fR\&\f(CW-r\ \fI--readonly\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-r\ \fI\-\-readonly\fR\&\f(CW\fR\ Mount the disk read-only. This is automatically assumed if the disk is write protected. .TP -\&\fR\&\f(CW-s\ \fI--sync\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-s\ \fI\-\-sync\fR\&\f(CW\fR\ Mount with the \fR\&\f(CWSYNC\fR option. .TP -\&\fR\&\f(CW--nosync\fR\ +\&\fR\&\f(CW\-\-nosync\fR\ Mounts without the \fR\&\f(CWSYNC\fR option, even when running as daemon. .TP -\&\fR\&\f(CW--nodev\fR\ +\&\fR\&\f(CW\-\-nodev\fR\ Mount with the \fR\&\f(CWNODEV\fR option. Ignored for \fR\&\f(CWmsdos\fR filesystems, otherwise always set for non-root users. .TP -\&\fR\&\f(CW--nosuid\fR\ +\&\fR\&\f(CW\-\-nosuid\fR\ Mount with the \fR\&\f(CWNOSUID\fR option. Ignored for \fR\&\f(CWmsdos\fR filesystems, otherwise always set for non-root users. .TP -\&\fR\&\f(CW--noexec\fR\ +\&\fR\&\f(CW\-\-noexec\fR\ Mount with the \fR\&\f(CWNOEXEC\fR option. .TP -\&\fR\&\f(CW-f\ \fI--force\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-f\ \fI\-\-force\fR\&\f(CW\fR\ Attempt a mount or unmount operation even \fR\&\f(CW\(if/etc/mtab\(is\fR says that the drive is already mounted, or not mounted, respectively. This option is useful if \fR\&\f(CW\(if/etc/mtab\(is\fR got out of sync with the actual state for some reason. .TP -\&\fR\&\f(CW-h\ \fI--help\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-h\ \fI\-\-help\fR\&\f(CW\fR\ Show short parameter description .PP .SH Security @@ -224,7 +224,7 @@ When the disk is removed, it is automatically unmounted. However, it is recommended to unmount the disk manually \fIbefore\fR removing it. In order to limit corruption, disks are mounted with the SYNC option when -running in daemon mode, unless the \fR\&\f(CW--nosync\fR flag is given. +running in daemon mode, unless the \fR\&\f(CW\-\-nosync\fR flag is given. .PP Note that this mode has some potential drawbacks: .TP @@ -300,11 +300,11 @@ .TP \&\fR\&\f(CWDrive\ \fIname\fR\&\f(CW\ is\ mounted\ already\fR\ Trying to mount a drive which appears to be mounted already. Use the -\&\fR\&\f(CW--force\fR option if you think this is wrong. +\&\fR\&\f(CW\-\-force\fR option if you think this is wrong. .TP \&\fR\&\f(CWDrive\ \fIname\fR\&\f(CW\ is\ not\ mounted\fR\ Trying to unmount a drive which does not appear to be mounted. Use the -\&\fR\&\f(CW--force\fR option if you think this is wrong. +\&\fR\&\f(CW\-\-force\fR option if you think this is wrong. .TP \&\fR\&\f(CWioctl(...)\ failed\fR\ If this occurs with the \fR\&\f(CWFDGETDRVTYP\fR or \fR\&\f(CWFDGETDRVSTAT\fR, --- a/doc/fdrawcmd.1 +++ b/doc/fdrawcmd.1 @@ -329,7 +329,7 @@ means that the driver should not try to autodetect the disk type (it might not be formatted), and that it should not reset the FDC. If a reset was needed, the command simply fails. If that happens, execute -\&\fR\&\f(CWfloppycontrol --resetnow 0\fR , and try again. +\&\fR\&\f(CWfloppycontrol \-\-resetnow 0\fR , and try again. .PP .SH See Also Fdutils' texinfo doc --- a/doc/floppycontrol.1 +++ b/doc/floppycontrol.1 @@ -72,19 +72,19 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWfloppycontrol [\fR\&\f(CW-p] [\fR\&\f(CW--pollstate] [\fR\&\f(CW--printfdstate] -[\fR\&\f(CW-a \fIoperation-abort-threshold\fR\&\f(CW] [\fR\&\f(CW-c \fIread-track-threshold\fR\&\f(CW] -[\fR\&\f(CW-r \fIrecalibrate-threshold\fR\&\f(CW] [\fR\&\f(CW-R \fIreset-threshold\fR\&\f(CW] -[\fR\&\f(CW-e \fIreporting-threshold\fR\&\f(CW] [\fR\&\f(CW-f] [\fR\&\f(CW-x] [\fR\&\f(CW-d \fIdrive\fR\&\f(CW][\fR\&\f(CW-F] [\fR\&\f(CW-T] -[\fR\&\f(CW-reset \fIcondition\fR\&\f(CW] [\fR\&\f(CW--debug] [\fR\&\f(CW--nodebug] [\fR\&\f(CW--messages] -[\fR\&\f(CW--nomessages] [\fR\&\f(CW--broken_dcl] [\fR\&\f(CW--working_dcl] [\fR\&\f(CW--inverted_dcl] -[\fR\&\f(CW--no_inverted_dcl] [\fR\&\f(CW--silent_dcl_clear] [\fR\&\f(CW--noisy_dcl_clear] -[\fR\&\f(CW-c\fIcmos-type\fR\&\f(CW] [\fR\&\f(CW-hlt \fIhlt\fR\&\f(CW] [\fR\&\f(CW-hut \fIhut\fR\&\f(CW] [\fR\&\f(CW-srt \fIsrt\fR\&\f(CW] [\fR\&\f(CW-o \fIspindown\fR\&\f(CW] -[\fR\&\f(CW-u \fIspinup\fR\&\f(CW] [\fR\&\f(CW-s \fIselect-delay\fR\&\f(CW] [\fR\&\f(CW-rps \fIrotations-per-second\fR\&\f(CW] -[\fR\&\f(CW-O \fIspindown-offset\fR\&\f(CW] [\fR\&\f(CW-track \fImax-tracks\fR\&\f(CW] [\fR\&\f(CW-timeout \fIseconds\fR\&\f(CW] -[\fR\&\f(CW-C \fIcheck-interval\fR\&\f(CW] [\fR\&\f(CW-n \fInative-format\fR\&\f(CW] -[\fR\&\f(CW-autodetect \fIautodetection-sequence\fR\&\f(CW] [\fR\&\f(CW-P] [\fR\&\f(CW--clrwerror] -[\fR\&\f(CW--printwerror] [\fR\&\f(CW-h] +\&\fR\&\f(CWfloppycontrol [\fR\&\f(CW\-p] [\fR\&\f(CW\-\-pollstate] [\fR\&\f(CW\-\-printfdstate] +[\fR\&\f(CW\-a \fIoperation\-abort\-threshold\fR\&\f(CW] [\fR\&\f(CW\-c \fIread\-track\-threshold\fR\&\f(CW] +[\fR\&\f(CW\-r \fIrecalibrate\-threshold\fR\&\f(CW] [\fR\&\f(CW\-R \fIreset\-threshold\fR\&\f(CW] +[\fR\&\f(CW\-e \fIreporting\-threshold\fR\&\f(CW] [\fR\&\f(CW\-f] [\fR\&\f(CW\-x] [\fR\&\f(CW\-d \fIdrive\fR\&\f(CW][\fR\&\f(CW\-F] [\fR\&\f(CW\-T] +[\fR\&\f(CW\-reset \fIcondition\fR\&\f(CW] [\fR\&\f(CW\-\-debug] [\fR\&\f(CW\-\-nodebug] [\fR\&\f(CW\-\-messages] +[\fR\&\f(CW\-\-nomessages] [\fR\&\f(CW\-\-broken_dcl] [\fR\&\f(CW\-\-working_dcl] [\fR\&\f(CW\-\-inverted_dcl] +[\fR\&\f(CW\-\-no_inverted_dcl] [\fR\&\f(CW\-\-silent_dcl_clear] [\fR\&\f(CW\-\-noisy_dcl_clear] +[\fR\&\f(CW\-c\fIcmos\-type\fR\&\f(CW] [\fR\&\f(CW\-hlt \fIhlt\fR\&\f(CW] [\fR\&\f(CW\-hut \fIhut\fR\&\f(CW] [\fR\&\f(CW\-srt \fIsrt\fR\&\f(CW] [\fR\&\f(CW\-o \fIspindown\fR\&\f(CW] +[\fR\&\f(CW\-u \fIspinup\fR\&\f(CW] [\fR\&\f(CW\-s \fIselect\-delay\fR\&\f(CW] [\fR\&\f(CW\-rps \fIrotations\-per\-second\fR\&\f(CW] +[\fR\&\f(CW\-O \fIspindown\-offset\fR\&\f(CW] [\fR\&\f(CW\-track \fImax\-tracks\fR\&\f(CW] [\fR\&\f(CW\-timeout \fIseconds\fR\&\f(CW] +[\fR\&\f(CW\-C \fIcheck\-interval\fR\&\f(CW] [\fR\&\f(CW\-n \fInative\-format\fR\&\f(CW] +[\fR\&\f(CW\-autodetect \fIautodetection\-sequence\fR\&\f(CW] [\fR\&\f(CW\-P] [\fR\&\f(CW\-\-clrwerror] +[\fR\&\f(CW\-\-printwerror] [\fR\&\f(CW\-h] .fi .in -0.3i .ft R @@ -96,14 +96,14 @@ .SH General\ Options .IP .TP -\&\fR\&\f(CW-h\fR\ +\&\fR\&\f(CW\-h\fR\ .TQ -\&\fR\&\f(CW--help\fR +\&\fR\&\f(CW\-\-help\fR Print a help screen. .TP -\&\fR\&\f(CW-d\ \fIdrive\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-d\ \fIdrive\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--drive\ \fI\ drive\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-drive\ \fI\ drive\fR\&\f(CW\fR Selects the drive to configure. The default is drive 0 (\fR\&\f(CW\(if/dev/fd0\(is\fR). .PP @@ -113,18 +113,18 @@ parameter, but perform a one-time action. They are available to anybody who has write access to the drive .TP -\&\fR\&\f(CW-f\ \ \fR\ +\&\fR\&\f(CW\-f\ \ \fR\ .TQ -\&\fR\&\f(CW--flush\fR +\&\fR\&\f(CW\-\-flush\fR Flushes (throws away) the dirty data buffers associated with this drive. .TP -\&\fR\&\f(CW-x\ \ \fR\ +\&\fR\&\f(CW\-x\ \ \fR\ .TQ -\&\fR\&\f(CW--eject\fR +\&\fR\&\f(CW\-\-eject\fR Ejects the disk out of the drive (Sparc). The dirty buffers are first committed to disk before ejecting it. Fails if the disk is mounted. .TP -\&\fR\&\f(CW--reset\ \fI\ condition\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-reset\ \fI\ condition\fR\&\f(CW\fR\ Resets the FDC under \&\fIcondition\fR . Condition may be one of the following: .RS @@ -144,9 +144,9 @@ (see section fdrawcmd). .IP .TP -\&\fR\&\f(CW-F\fR\ +\&\fR\&\f(CW\-F\fR\ .TQ -\&\fR\&\f(CW--formatend\fR +\&\fR\&\f(CW\-\-formatend\fR Issues an end format ioctl. This might be needed after exiting a \&\fR\&\f(CWfdformat\fR in an unclean way. \fR\&\f(CWsuperformat\fR is not subject to this. @@ -154,9 +154,9 @@ .SH Printing\ current\ settings .IP .TP -\&\fR\&\f(CW-T\fR\ +\&\fR\&\f(CW\-T\fR\ .TQ -\&\fR\&\f(CW--type\fR +\&\fR\&\f(CW\-\-type\fR Print out the drive name of a floppy device. This is used by the \&\fR\&\f(CWMAKEFLOPPIES\fR script. The drive name is a letter (describing the drive type) followed by the capacity of the format in bytes. The letter @@ -168,15 +168,15 @@ "native format" of the drive is printed, and for the default formats, if a generic format has been redefined, its name becomes \fR\&\f(CW(null)\fR. .TP -\&\fR\&\f(CW-p\fR\ +\&\fR\&\f(CW\-p\fR\ .TQ -\&\fR\&\f(CW--print\fR +\&\fR\&\f(CW\-\-print\fR Prints out the configuration of the drive. The names of the various fields are the same as the names of the option to set them, see below. .TP -\&\fR\&\f(CW-P\fR\ +\&\fR\&\f(CW\-P\fR\ .TQ -\&\fR\&\f(CW--printstate\fR +\&\fR\&\f(CW\-\-printstate\fR Prints out the cached internal state of the driver. The first line lists various attributes about the disk: .RS @@ -207,15 +207,15 @@ .RS .TP * \ \ --1 means that the driver doesn't know, but the controller does (a seek +\-1 means that the driver doesn't know, but the controller does (a seek command must be issued). .TP * \ \ --2 means that the controller doesn't know either, but is sure that it +\-2 means that the controller doesn't know either, but is sure that it not beyond the 80th track. The drive needs a recalibration. .TP * \ \ --3 means that the head may be beyond the 80th track. The drive needs +\-3 means that the head may be beyond the 80th track. The drive needs two successive recalibrations, because at each recalibration, the controller only issues 80 move head commands per recalibration. .RE @@ -253,12 +253,12 @@ .RE .IP .TP -\&\fR\&\f(CW--pollstate\fR\ +\&\fR\&\f(CW\-\-pollstate\fR\ Polls the drive and then prints out the internal state of the -driver.(\fR\&\f(CW--Printstate\fR only prints out the cached information +driver.(\fR\&\f(CW\-\-Printstate\fR only prints out the cached information without actually polling the drive for a disk change.) .TP -\&\fR\&\f(CW--printfdcstate\fR\ +\&\fR\&\f(CW\-\-printfdcstate\fR\ Prints out the state of the controller where the target drive is attached to. .RS @@ -323,9 +323,9 @@ .PP These settings are only changeable by the super user. .TP -\&\fR\&\f(CW-c\ \fIcmos-type\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-c\ \fIcmos\-type\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--cmos\ \fI\ cmos-type\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-cmos\ \fI\ cmos\-type\fR\&\f(CW\fR Set the virtual CMOS type of the floppy drive. This is useful if .RS .TP @@ -351,9 +351,9 @@ autodetection list and the native format, whereas \fR\&\f(CWfloppycontrol\fR does not. .TP -\&\fR\&\f(CW-A\ \ \fIautodetect-seq\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-A\ \ \fIautodetect\-seq\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--autodetect\ \fI\ autodetect-seq\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-autodetect\ \fI\ autodetect\-seq\fR\&\f(CW\fR Set the autodetection sequence (see section Autodetection) The autodetection sequence is a comma-separated list of at most eight format descriptors. Each format descriptor is a format number optionally @@ -396,9 +396,9 @@ (barring other constraints), as each format that is tried out takes 400 milliseconds. .TP -\&\fR\&\f(CW-n\ \fInative-format\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-n\ \fInative\-format\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--native_format\ \fI\ native-format\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-native_format\ \fI\ native\-format\fR\&\f(CW\fR Set the native format of this drive. The native format of a drive is the highest standard format available for this drive. (Example: For a 5 1/4 HD drive it is the usual 1200K format.) This is format is used to make @@ -409,7 +409,7 @@ .PP .SH Configuration\ of\ the\ disk\ change\ line .TP -\&\fR\&\f(CW--broken_dcl\fR\ +\&\fR\&\f(CW\-\-broken_dcl\fR\ Assumes that the disk change line of the drive is broken. If this is set, disk changes are assumed to happen whenever the device node is first opened. The physical disk change line is ignored. @@ -441,20 +441,20 @@ \&\fR\&\f(CWbroken_dcl\fR option on. .RE .TP -\&\fR\&\f(CW--working_dcl\fR\ +\&\fR\&\f(CW\-\-working_dcl\fR\ Assumes that the disk change line works all right. Switching from broken to working may lead to unexpected results after the first disk change. .TP -\&\fR\&\f(CW--inverted_dcl\fR\ +\&\fR\&\f(CW\-\-inverted_dcl\fR\ Assumes that this disk drive uses an inverted disk change line. Apparently this is the case for IBM thinkpads. .TP -\&\fR\&\f(CW--no_inverted_dcl\fR\ +\&\fR\&\f(CW\-\-no_inverted_dcl\fR\ Assumes that this drive follows the standard convention for the disk change line. .TP -\&\fR\&\f(CW--noisy_dcl_clear\fR\ +\&\fR\&\f(CW\-\-noisy_dcl_clear\fR\ Switches off silent disk change line clearing for this drive. .PP .SH Timing\ Parameters @@ -463,26 +463,26 @@ parameters, you need superuser privileges. All times are in "jiffy" units (10 milliseconds), unless otherwise specified. .TP -\&\fR\&\f(CW--hlt\ \fI\ hlt\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-hlt\ \fI\ hlt\fR\&\f(CW\fR\ Set the head load time (in microseconds) for this floppy drive. The head load time describes how long the floppy controller waits after seeking or changing heads before allowing access to a track. .TP -\&\fR\&\f(CW--hut\ \fI\ hut\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-hut\ \fI\ hut\fR\&\f(CW\fR\ Set the head unload time (in microseconds) for this floppy drive. The head unload time describes how long the floppy controller waits after an access before directing its attention to the other head, or before seeking. .TP -\&\fR\&\f(CW--srt\ \fI\ srt\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-srt\ \fI\ srt\fR\&\f(CW\fR\ Set the step rate (in microseconds) for this floppy drive. The step rate describes how long the drive head stays on one cylinder when seeking. Setting this value to low (too fast seeks) may make seeks fail, because the motor doesn't follow fast enough. .TP -\&\fR\&\f(CW-u\ \fIspinup-time\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-u\ \fIspinup\-time\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--spinup\ \fI\ spinup-time\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-spinup\ \fI\ spinup\-time\fR\&\f(CW\fR Set the spinup time of the floppy drive. In order to do read or write to the floppy disk, it must spin. It takes a certain time for the motor to reach enough speed to read or write. This parameter describes @@ -490,17 +490,17 @@ the spinup time has elapsed. With modern controllers, you may set this time to zero, as the controller itself enforces the right delay. .TP -\&\fR\&\f(CW-o\ \fIspindown-time\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-o\ \fIspindown\-time\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--spindown\ \fI\ spindown-time\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-spindown\ \fI\ spindown\-time\fR\&\f(CW\fR Set the spindown time of this floppy drive. The motor is not stopped immediately after the operation completes, because there might be more operations following. The spindown time is the time the driver waits before switching off the motor. .TP -\&\fR\&\f(CW-O\ \fIspindown-offset\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-O\ \fIspindown\-offset\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--spindown_offset\ \fI\ spindown-offset\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-spindown_offset\ \fI\ spindown\-offset\fR\&\f(CW\fR Set the spindown offset of this floppy drive. This parameter is used to set the position in which the disk stops. This is useful to minimize the next access time. (If the first sector is just near the @@ -511,16 +511,16 @@ completes, and using this time to calculate the current position of the disk. .TP -\&\fR\&\f(CW-s\ \fIselect-delay\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-s\ \fIselect\-delay\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--select_delay\ \fI\ select-delay\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-select_delay\ \fI\ select\-delay\fR\&\f(CW\fR Set the \fIselect delay\fR of this floppy drive. This is the delay that the driver waits after selecting the drive and issuing the first command to it. For modern controllers/drives, you may set this to zero. .TP -\&\fR\&\f(CW-C\ \fIcheck-interval\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-C\ \fIcheck\-interval\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--checkfreq\ \fI\ check-interval\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-checkfreq\ \fI\ check\-interval\fR\&\f(CW\fR Set the maximal disk change check interval. The disk change line is checked whenever a read or write to the device is issued, and it has not been checked for more than \fIinterval\fR jiffies. @@ -531,20 +531,20 @@ on and off. .IP .TP -\&\fR\&\f(CW--debug\fR\ +\&\fR\&\f(CW\-\-debug\fR\ Switch debugging output on. The debugging information includes timing information. This option might be useful to fine-tune the timing options for your local setups. (But for most normal purposes, the default values are good enough.) .TP -\&\fR\&\f(CW--nodebug\fR\ +\&\fR\&\f(CW\-\-nodebug\fR\ Switch debugging output off. .TP -\&\fR\&\f(CW--messages\fR\ +\&\fR\&\f(CW\-\-messages\fR\ Print informational messages after autodetection, geometry parameter clearing and dma over/underruns. .TP -\&\fR\&\f(CW--nomessages\fR\ +\&\fR\&\f(CW\-\-nomessages\fR\ Don't print informational messages after these events. .PP .SH Error\ Handling\ Options @@ -557,38 +557,38 @@ are performed at the next retry. The counter is reset when the read or write finally terminates, whether successfully or not. .TP -\&\fR\&\f(CW-a\ \fIoperation-abort-threshold\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-a\ \fIoperation\-abort\-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--abort\ \fI\ operation-abort-threshold\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-abort\ \fI\ operation\-abort\-threshold\fR\&\f(CW\fR Tell the floppy driver to stop trying to read/write a sector after \&\fIoperation-abort-threshold\fR retries, and signal the I/O error to the user. .TP -\&\fR\&\f(CW-t\ \fIread-track-threshold\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-t\ \fIread\-track\-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--readtrack\ \fI\ read-track-threshold\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-readtrack\ \fI\ read\-track\-threshold\fR\&\f(CW\fR Tell the floppy driver to switch from track-reading mode to sector-at-a-time-mode after \&\fIread-track-threshold\fR retries. .TP -\&\fR\&\f(CW-r\ \fIrecalibrate-threshold\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-r\ \fIrecalibrate\-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--recalibrate\ \fI\ recalibrate-threshold\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-recalibrate\ \fI\ recalibrate\-threshold\fR\&\f(CW\fR Tell the floppy driver to recalibrate the drive after \&\fIrecalibrate-threshold\fR retries. .TP -\&\fR\&\f(CW-R\ \fIreset-threshold\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-R\ \fIreset\-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--reset\ \fI\ reset-threshold\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-reset\ \fI\ reset\-threshold\fR\&\f(CW\fR Tell the floppy driver to reset the controller after \&\fIreset-threshold\fR retries. After a controller reset, the floppy driver also recalibrates all drives connected to that controller. .IP .TP -\&\fR\&\f(CW-e\ \fIerror-report-threshold\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-e\ \fIerror\-report\-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--reporting\ \fI\ error-report-threshold\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-reporting\ \fI\ error\-report\-threshold\fR\&\f(CW\fR Tell the floppy driver to start printing error messages to the console after \fIerror-report-threshold\fR retries. .PP @@ -603,10 +603,10 @@ which wants to make sure that the data has been written successfully. .IP .TP -\&\fR\&\f(CW--clrwerror\fR\ +\&\fR\&\f(CW\-\-clrwerror\fR\ Clears the write error structure. .TP -\&\fR\&\f(CW--printwerror\fR\ +\&\fR\&\f(CW\-\-printwerror\fR\ Prints the contents of the write error structure: .RS .TP @@ -639,7 +639,7 @@ in any other category. They are available only to the superuser: .IP .TP -\&\fR\&\f(CW--tracks\ \fI\ max-tracks\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-tracks\ \fI\ max\-tracks\fR\&\f(CW\fR\ Set the maximal numbers of physical tracks that this drive may handle. If you have a drive which is only able to handle 80 tracks (making strange noises when you try to format or read a disk with more @@ -651,9 +651,9 @@ drives you don't need to worry anyways. See section More cylinders, for details. .TP -\&\fR\&\f(CW-i\ \fIsector-interleave\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW\-i\ \fIsector\-interleave\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--interleave\ \fIsector-interleave\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-interleave\ \fIsector\-interleave\fR\&\f(CW\fR Set the number of sectors beyond which sector interleaving will be used. This option will only be used by the \fR\&\f(CWFDFMTTRK\fR ioctl. The \&\fR\&\f(CWfdformat\fR command, which is now considered obsolete, uses --- a/doc/diskseekd.1 +++ b/doc/diskseekd.1 @@ -86,23 +86,23 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWdiskseekd [\fR\&\f(CW-d \fIdrive\fR\&\f(CW] [\fR\&\f(CW-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW-p \fIpidfile\fR\&\f(CW] +\&\fR\&\f(CWdiskseekd [\fR\&\f(CW\-d \fIdrive\fR\&\f(CW] [\fR\&\f(CW\-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW\-p \fIpidfile\fR\&\f(CW] .fi .in -0.3i .ft R \&\fR .TP -\&\fR\&\f(CW-d\ \fIdrive\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-d\ \fIdrive\fR\&\f(CW\fR\ Selects the drive to seek. By default, drive 0 (\fR\&\f(CW\(if/dev/fd0\(is\fR) is sought. .TP -\&\fR\&\f(CW-i\ \fIinterval\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-i\ \fIinterval\fR\&\f(CW\fR\ Selects the cleaning interval, in seconds. If the interval is 0, a single seek is done. This is useful when calling diskseek from a crontab. The default is 1000 seconds (about 16 minutes) for \&\fR\&\f(CWdiskseekd\fR and 0 for \fR\&\f(CWdiskseek\fR. .TP -\&\fR\&\f(CW-p\ \fIpidfile\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-p\ \fIpidfile\fR\&\f(CW\fR\ Stores the process id of the diskseekd daemon into \fIpidfile\fR instead of the default \fR\&\f(CW\(if/var/run/diskseekd.pid\(is\fR. .PP --- a/doc/floppymeter.1 +++ b/doc/floppymeter.1 @@ -72,8 +72,8 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWfloppymeter [\fR\&\f(CW-f] [\fR\&\f(CW-w \fIwarmup-delay\fR\&\f(CW] [\fR\&\f(CW-W \fIwindow\fR\&\f(CW] -[\fR\&\f(CW-c \fIcycles\fR\&\f(CW] [\fR\&\f(CW-h] \fIdrive\fR\&\f(CW +\&\fR\&\f(CWfloppymeter [\fR\&\f(CW\-f] [\fR\&\f(CW\-w \fIwarmup\-delay\fR\&\f(CW] [\fR\&\f(CW\-W \fIwindow\fR\&\f(CW] +[\fR\&\f(CW\-c \fIcycles\fR\&\f(CW] [\fR\&\f(CW\-h] \fIdrive\fR\&\f(CW .fi .in -0.3i .ft R @@ -84,7 +84,7 @@ floppy drive and floppy controller, such as the rotation speed of the drive, the data transfer rate of the controller, and the resulting raw capacity of a disk track. To use this program, insert a disposable -floppy in the drive, and type \fR\&\f(CWfloppymeter --\fR\fIdensity\fR, where +floppy in the drive, and type \fR\&\f(CWfloppymeter \-\-\fR\fIdensity\fR, where density describes the density of the disk used for the test. (Should be one of \fR\&\f(CWdd, hd\fR or \fR\&\f(CWed\fR). \fBCAUTION: the data on the disk will be erased\fR. This program should be used to verify whether the @@ -125,31 +125,31 @@ If on the other hand, the raw capacity of the drive is too big, you may get problems when writing to a disk formatted by this drive on another drive with a smaller raw capacity. In order to avoid this, increase -superformats gap parameter (\fR\&\f(CW-G\fR). +superformats gap parameter (\fR\&\f(CW\-G\fR). .IP .TP -\&\fR\&\f(CW-h\fR\ +\&\fR\&\f(CW\-h\fR\ Prints a short help .TP -\&\fR\&\f(CW--dd\fR\ +\&\fR\&\f(CW\-\-dd\fR\ Tells the program that we use a Double Density disk. .TP -\&\fR\&\f(CW--hd\fR\ +\&\fR\&\f(CW\-\-hd\fR\ Tells the program that we use a High Density disk. .TP -\&\fR\&\f(CW--ed\fR\ +\&\fR\&\f(CW\-\-ed\fR\ Tells the program that we use an Extra Density disk. .TP -\&\fR\&\f(CW-f\fR\ +\&\fR\&\f(CW\-f\fR\ Runs the measurement non interactively. With this option, the program doesn't ask for confirmation, and doesn't display the continuously updated values during the rotation speed measurement. .TP -\&\fR\&\f(CW-W\ \fIWindow\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-W\ \fIWindow\fR\&\f(CW\fR\ This value describes how many rotations are used for the computation of the sliding average. Default is 30. .TP -\&\fR\&\f(CW-c\ \fIcycles\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-c\ \fIcycles\fR\&\f(CW\fR\ Describes the number of rotations clocked during the rotations speed determination test. Default is 1000. .PP --- a/doc/makefloppies.1 +++ b/doc/makefloppies.1 @@ -72,7 +72,7 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWMAKEFLOPPIES [\fR\&\f(CW-tlvng] [\fIdrives\fR\&\f(CW] +\&\fR\&\f(CWMAKEFLOPPIES [\fR\&\f(CW\-tlvng] [\fIdrives\fR\&\f(CW] .fi .in -0.3i .ft R @@ -102,24 +102,24 @@ .SH Options .IP .TP -\&\fR\&\f(CW-t\fR\ +\&\fR\&\f(CW\-t\fR\ Use the old naming convention for 3 1/2 devices (e.g. \fR\&\f(CW\(iffd0H720\(is\fR instead of \fR\&\f(CW\(iffd0u720\(is\fR). .TP -\&\fR\&\f(CW-m\fR\ +\&\fR\&\f(CW\-m\fR\ Base the name for the created devices on the type of the media (e.g. \fR\&\f(CW\(iffd0h720\(is\fR instead of \fR\&\f(CW\(iffd0u720\(is\fR). .TP -\&\fR\&\f(CW-l\fR\ +\&\fR\&\f(CW\-l\fR\ Local. Creates device nodes in the local directory, not /dev .TP -\&\fR\&\f(CW-v\fR\ +\&\fR\&\f(CW\-v\fR\ Verbose .TP -\&\fR\&\f(CW-n\fR\ +\&\fR\&\f(CW\-n\fR\ Dry run. (just report what would be done, do not do anything) .TP -\&\fR\&\f(CW-g\fR\ +\&\fR\&\f(CW\-g\fR\ Group. Allow read/write access to floppy devices only for group \&\fR\&\f(CW\(iffloppy\(is\fR .PP --- a/doc/setfdprm.1 +++ b/doc/setfdprm.1 @@ -72,9 +72,9 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWsetfdprm [\fR\&\f(CW-p] \fIdevice\fR\&\f(CW \fImedia-description\fR\&\f(CW +\&\fR\&\f(CWsetfdprm [\fR\&\f(CW\-p] \fIdevice\fR\&\f(CW \fImedia\-description\fR\&\f(CW \&\& -\&\fR\&\f(CWsetfdprm [\fR\&\f(CW-c | \fR\&\f(CW-y | \fR\&\f(CW-n] \fIdevice\fR\&\f(CW +\&\fR\&\f(CWsetfdprm [\fR\&\f(CW\-c | \fR\&\f(CW\-y | \fR\&\f(CW\-n] \fIdevice\fR\&\f(CW \&\& .fi .in -0.3i @@ -101,20 +101,20 @@ .SH Options .IP .TP -\&\fR\&\f(CW-p\ \fIdevice\ name\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-p\ \fIdevice\ name\fR\&\f(CW\fR\ Permanently loads a new parameter set for the specified auto-configuring floppy device for the configuration with \fIname\fR in \&\fR\&\f(CW\(if/etc/fdprm\(is\fR. Alternatively, the parameters can be given directly from the command line. .TP -\&\fR\&\f(CW-c\ \fIdevice\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-c\ \fIdevice\fR\&\f(CW\fR\ Clears the parameter set of the specified auto-configuring floppy device. .TP -\&\fR\&\f(CW-y\ \fIdevice\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-y\ \fIdevice\fR\&\f(CW\fR\ Enables format detection messages for the specified auto-configuring floppy device. .TP -\&\fR\&\f(CW-n\ \fIdevice\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-n\ \fIdevice\fR\&\f(CW\fR\ Disables format detection messages for the specified auto-configuring floppy device. .PP --- a/doc/superformat.1 +++ b/doc/superformat.1 @@ -72,12 +72,12 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWsuperformat [\fR\&\f(CW-D \fIdos-drive\fR\&\f(CW] [\fR\&\f(CW-v \fIverbosity-level\fR\&\f(CW] [\fR\&\f(CW-b \fIbegin-track\fR\&\f(CW] -[\fR\&\f(CW-e \fIend-track\fR\&\f(CW] [\fR\&\f(CW--superverify] [\fR\&\f(CW--dosverify] -[\fR\&\f(CW--noverify] [\fR\&\f(CW--verify_later] [\fR\&\f(CW--zero-based] -[\fR\&\f(CW-G \fIformat-gap\fR\&\f(CW] [\fR\&\f(CW-F \fIfinal-gap\fR\&\f(CW] [\fR\&\f(CW-i \fIinterleave\fR\&\f(CW] [\fR\&\f(CW-c \fIchunksize\fR\&\f(CW] -[\fR\&\f(CW-g \fIgap\fR\&\f(CW] [\fR\&\f(CW--absolute-skew \fIabsolute-skew\fR\&\f(CW] [\fR\&\f(CW--head-skew \fIhead-skew\fR\&\f(CW] -[\fR\&\f(CW--track-skew \fItrack-skew\fR\&\f(CW] [\fR\&\f(CW--biggest-last] \fIdrive\fR\&\f(CW [\fImedia-description\fR\&\f(CW] +\&\fR\&\f(CWsuperformat [\fR\&\f(CW\-D \fIdos\-drive\fR\&\f(CW] [\fR\&\f(CW\-v \fIverbosity\-level\fR\&\f(CW] [\fR\&\f(CW\-b \fIbegin\-track\fR\&\f(CW] +[\fR\&\f(CW\-e \fIend\-track\fR\&\f(CW] [\fR\&\f(CW\-\-superverify] [\fR\&\f(CW\-\-dosverify] +[\fR\&\f(CW\-\-noverify] [\fR\&\f(CW\-\-verify_later] [\fR\&\f(CW\-\-zero\-based] +[\fR\&\f(CW\-G \fIformat\-gap\fR\&\f(CW] [\fR\&\f(CW\-F \fIfinal\-gap\fR\&\f(CW] [\fR\&\f(CW\-i \fIinterleave\fR\&\f(CW] [\fR\&\f(CW\-c \fIchunksize\fR\&\f(CW] +[\fR\&\f(CW\-g \fIgap\fR\&\f(CW] [\fR\&\f(CW\-\-absolute\-skew \fIabsolute\-skew\fR\&\f(CW] [\fR\&\f(CW\-\-head\-skew \fIhead\-skew\fR\&\f(CW] +[\fR\&\f(CW\-\-track\-skew \fItrack\-skew\fR\&\f(CW] [\fR\&\f(CW\-\-biggest\-last] \fIdrive\fR\&\f(CW [\fImedia\-description\fR\&\f(CW] .fi .in -0.3i .ft R @@ -119,51 +119,51 @@ .SH Common\ Options Many options have a long and a short form. .TP -\&\fR\&\f(CW-h\fR\ +\&\fR\&\f(CW\-h\fR\ .TQ -\&\fR\&\f(CW--help\fR +\&\fR\&\f(CW\-\-help\fR Print the help. .TP -\&\fR\&\f(CW-D\ \fIdrive\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-D\ \fIdrive\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--dosdrive\ \fIdos-drive\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-dosdrive\ \fIdos\-drive\fR\&\f(CW\fR Selects DOS drive letter for \fR\&\f(CWmformat\fR (for example \fR\&\f(CWa:\fR or \&\fR\&\f(CWb:\fR). The colon may be omitted. The default is derived from the minor device number. If the drive letter cannot be guessed, and is not given on the command line, \fR\&\f(CWmformat\fR is skipped. .TP -\&\fR\&\f(CW-v\ \fIverbosity-level\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-v\ \fIverbosity\-level\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--verbosity\ \fIverbosity-level\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-verbosity\ \fIverbosity\-level\fR\&\f(CW\fR Sets the verbosity level. 1 prints a dot for each formatted track. 2 -prints a changing sign for each formatted track (- for formatting the +prints a changing sign for each formatted track (\- for formatting the first head, = for formatting the second head, x for verifying the first head, and + for verifying the second head). 3 prints a complete line listing head and track. 6 and 9 print debugging information. .TP -\&\fR\&\f(CW--superverify\fR\ +\&\fR\&\f(CW\-\-superverify\fR\ Verifies the disk by first reading the track, than writing a pattern of U's, and then reading it again. This is useful as some errors only show up after the disk has once been written. However, this is also slower. .TP -\&\fR\&\f(CW-B\fR\ +\&\fR\&\f(CW\-B\fR\ .TQ -\&\fR\&\f(CW--dosverify\fR +\&\fR\&\f(CW\-\-dosverify\fR Verifies the disk using the \fR\&\f(CWmbadblocks\fR program. \&\fR\&\f(CWmbadblocks\fR marks the bad sectors as bad in the FAT. The advantage of this is that disks which are only partially bad can still be used for MS-DOS filesystems. .TP -\&\fR\&\f(CW-V\fR\ +\&\fR\&\f(CW\-V\fR\ .TQ -\&\fR\&\f(CW--verify_later\fR +\&\fR\&\f(CW\-\-verify_later\fR Verifies the whole disk at the end of the formatting process instead of at each track. Verifying the disk at each track has the advantage of detecting errors early on. .TP -\&\fR\&\f(CW-f\fR\ +\&\fR\&\f(CW\-f\fR\ .TQ -\&\fR\&\f(CW--noverify\fR +\&\fR\&\f(CW\-\-noverify\fR Skips the verification altogether. .PP .SH Advanced\ Options @@ -173,65 +173,65 @@ or superformat itself has bugs. .IP .TP -\&\fR\&\f(CW-b\ \fIbegin-track\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-b\ \fIbegin\-track\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--begin_track\ \ \fIbegin-track\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-begin_track\ \ \fIbegin\-track\fR\&\f(CW\fR Describes the track where to begin formatting. This is useful if the previous formatting failed halfway through. The default is 0. .TP -\&\fR\&\f(CW-e\ \fIend-track\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-e\ \fIend\-track\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--end_track\ \fIend-track\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-end_track\ \fIend\-track\fR\&\f(CW\fR Describes where to stop formatting. \fIend_track\fR is the last track to be formatted plus one. This is mainly useful for testing purposes. By default, this is the same as the total number of tracks. When the formatting stops, the final skew is displayed (to be used as absolute skew when you'll continue). .TP -\&\fR\&\f(CW-S\ \fIsizecode\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-S\ \fIsizecode\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--sizecode\ \fIsizecode\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-sizecode\ \fIsizecode\fR\&\f(CW\fR Set the sector size to be used. The sector size is 128 * (2 ^ \&\fIsizecode\fR). Sector sizes below 512 bytes are not supported, thus sizecode must be at least 2. By default 512 is assumed, unless you ask for more sectors than would fit with 512 bytes. .TP -\&\fR\&\f(CW--stretch\ \fIstretch\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-stretch\ \fIstretch\fR\&\f(CW\fR\ Set the stretch factor. The stretch factor describes how many physical tracks to skip to get to the next logical track (2 ^ \fIstretch\fR). On double density 5 1/4 disks, the tracks are further apart from each other. .TP -\&\fR\&\f(CW-G\ \fIfmt-gap\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-G\ \fIfmt\-gap\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--format_gap\ \fIfmt-gap\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-format_gap\ \fIfmt\-gap\fR\&\f(CW\fR Set the formatting gap. The formatting gap tells how far the sectors are away from each other. By default, this is chosen so as to evenly distribute the sectors along the track. .TP -\&\fR\&\f(CW-F\ \fIfinal-gap\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-F\ \fIfinal\-gap\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--final_gap\ \fIfinal-gap\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-final_gap\ \fIfinal\-gap\fR\&\f(CW\fR Set the formatting gap to be used after the last sector. .TP -\&\fR\&\f(CW-i\ \fIinterleave\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-i\ \fIinterleave\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--interleave\ \fIinterleave\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-interleave\ \fIinterleave\fR\&\f(CW\fR Set the sector interleave factor. .TP -\&\fR\&\f(CW-c\ \fIchunksize\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-c\ \fIchunksize\fR\&\f(CW\fR\ .TQ -\&\fR\&\f(CW--chunksize\ \fIchunksize\fR\&\f(CW\fR +\&\fR\&\f(CW\-\-chunksize\ \fIchunksize\fR\&\f(CW\fR Set the size of the chunks. The chunks are small auxiliary sectors used during formatting. They are used to handle heterogeneous sector sizes (i.e. not all sectors have the same size) and negative formatting gaps. .TP -\&\fR\&\f(CW--biggest-last\fR\ +\&\fR\&\f(CW\-\-biggest\-last\fR\ For MSS formats, make sure that the biggest sector is last on the track. This makes the format more reliable on drives which are out of spec. .TP -\&\fR\&\f(CW--zero-based\fR\ +\&\fR\&\f(CW\-\-zero\-based\fR\ Formats the disk with sector numbers starting at 0, rather than 1. Certain CP/M boxes or Music synthesizers use this format. Those disks can currently not be read/written to by the standard Linux read/write @@ -251,17 +251,17 @@ and track. The amount of this change depends on how fast the disk spins, and on how much time is needed to change the head or the track. .TP -\&\fR\&\f(CW--absolute_skew\ \fIabsolute-skew\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-absolute_skew\ \fIabsolute\-skew\fR\&\f(CW\fR\ .IP Set the absolute skew. This skew value is used for the first formatted track. It is expressed in raw bytes. .TP -\&\fR\&\f(CW--head_skew\ \fIhead-skew\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-head_skew\ \fIhead\-skew\fR\&\f(CW\fR\ .IP Set the head skew. This is the skew added for passing from head 0 to head 1. It is expressed in raw bytes. .TP -\&\fR\&\f(CW--track_skew\ \fItrack-skew\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-\-track_skew\ \fItrack\-skew\fR\&\f(CW\fR\ .IP Set the track skew. This is the skew added for seeking to the next track. It is expressed in raw bytes. --- a/doc/xdfcopy.1 +++ b/doc/xdfcopy.1 @@ -72,8 +72,8 @@ .nf .ft 3 .in +0.3i -\&\fR\&\f(CWxdfcopy [\fR\&\f(CW-\fIformat-id\fR\&\f(CW] [\fR\&\f(CW-d] [\fR\&\f(CW-n] [\fR\&\f(CW-h \fIhead-skew\fR\&\f(CW] [\fR\&\f(CW-t \fIcylinder-skew\fR\&\f(CW] [\fR\&\f(CW-T -\&\fIend-cylinder\fR\&\f(CW] [\fIsource\fR\&\f(CW] \fItarget\fR\&\f(CW +\&\fR\&\f(CWxdfcopy [\fR\&\f(CW\-\fIformat\-id\fR\&\f(CW] [\fR\&\f(CW\-d] [\fR\&\f(CW\-n] [\fR\&\f(CW\-h \fIhead\-skew\fR\&\f(CW] [\fR\&\f(CW\-t \fIcylinder\-skew\fR\&\f(CW] [\fR\&\f(CW\-T +\&\fIend\-cylinder\fR\&\f(CW] [\fIsource\fR\&\f(CW] \fItarget\fR\&\f(CW .fi .in -0.3i .ft R @@ -91,7 +91,7 @@ .PP If both source and target are given, xdfcopy copies the disk image from file to floppy disk or vice-versa. When copying to a floppy disk, the -disk is first formatted, unless the \fR\&\f(CW-n\fR option is given. +disk is first formatted, unless the \fR\&\f(CW\-n\fR option is given. .PP If no source is given, the target is only formatted. In this case, the target must be a floppy drive. @@ -120,7 +120,7 @@ .PP .SH Misc\ options .TP -\&\fR\&\f(CW-D\ \fIdosdrive\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-D\ \fIdosdrive\fR\&\f(CW\fR\ Describes the DOS drive letter for mformat. If this option is given, an MS-DOS filesystem is automatically installed on the disk after the low-level format is complete. In order for this to work, the drive has @@ -152,27 +152,27 @@ \&\fR .TP -\&\fR\&\f(CW-n\fR\ +\&\fR\&\f(CW\-n\fR\ Don't format the disk before copying the disk image to the disk. .PP .SH Options\ for\ power\ users .IP .TP -\&\fR\&\f(CW-t\ \fIcylinder\ skew\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-t\ \fIcylinder\ skew\fR\&\f(CW\fR\ Uses a different track skew than the default (14). For more details on -skews, see section superformat. In this version of xdfcopy, the \fR\&\f(CW-t\fR +skews, see section superformat. In this version of xdfcopy, the \fR\&\f(CW\-t\fR parameter is ignored. .TP -\&\fR\&\f(CW-h\ \fIhead\ skew\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-h\ \fIhead\ skew\fR\&\f(CW\fR\ Uses a different head skew than the default (0) In this version, this parameter is ignored .TP -\&\fR\&\f(CW-d\fR\ +\&\fR\&\f(CW\-d\fR\ Debugging. For each read or write operation, the time it took to complete the operation is printed (in milliseconds). This can be used to optimize the skews. .TP -\&\fR\&\f(CW-T\ \fIend-cylinders\fR\&\f(CW\fR\ +\&\fR\&\f(CW\-T\ \fIend\-cylinders\fR\&\f(CW\fR\ Tells how many cylinders to format. With the XXDF formats, it is actually possible to format up to 83 cylinders, yielding a format of up to 1992KB on a 3 1/2 high density disk. debian/patches/makefile-destdir.patch0000644000000000000000000000236211703310375015052 0ustar Description: Add DESTDIR support in makefiles Tune src/Makefile.in and doc/Makefile.in to use DESTDIR variable. Author: Matteo Cypriani Last-Update: 2010-05-11 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -10,13 +10,14 @@ srcdir=@srcdir@ VPATH=@srcdir@ +DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ -bindir = @bindir@ -infodir = @infodir@ -mandir = @mandir@ -infodir = @infodir@ -sysconfdir = @sysconfdir@ +bindir = $(DESTDIR)@bindir@ +infodir = $(DESTDIR)@infodir@ +mandir = $(DESTDIR)@mandir@ +infodir = $(DESTDIR)@infodir@ +sysconfdir = $(DESTDIR)@sysconfdir@ CC = @CC@ PID = -DPIDFILE=\"@localstatedir@/run/diskseekd.pid\" --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -6,13 +6,14 @@ srcdir = @srcdir@ VPATH = @srcdir@ +DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ -bindir = @bindir@ -infodir = @infodir@ -mandir = @mandir@ -infodir = @infodir@ -sysconfdir = @sysconfdir@ +bindir = $(DESTDIR)@bindir@ +infodir = $(DESTDIR)@infodir@ +mandir = $(DESTDIR)@mandir@ +infodir = $(DESTDIR)@infodir@ +sysconfdir = $(DESTDIR)@sysconfdir@ mandir1 = $(mandir)/man1 mandir4 = $(mandir)/man4 debian/patches/mediaprm-fix_etc-fdprm.patch0000644000000000000000000000577311703310375016175 0ustar Description: Change occurrences of /etc/fdprm for /etc/mediaprm /etc/mediaprm was formerly named /etc/fdprm. This patch replaces occurrences of the old name by the new one, in the file itself and in the fdprm manpage. . It also fixes an indentation typo (this fix comes from ancient times and does not seem to be related to any bug). Author: Matteo Cypriani Bug-Debian: http://bugs.debian.org/519224 Last-Update: 2010-05-12 --- a/src/mediaprm +++ b/src/mediaprm @@ -1,4 +1,5 @@ -# /etc/fdprm - floppy disk parameter table +# /etc/mediaprm - floppy disk parameter table +# NB: this file was formerly named /etc/fdprm. ######################################################################## # Standard linux disk formats. Names are of the form @@ -774,7 +775,7 @@ # CMD FD2000 disk drive, a third party floppy disk drive for the # Commodore line of computers with double of the capacity: "CMDFD2M": - DS HD sect=10 cyl=81 ssize=1024 fmt_gap=100 gap=12 swapsides + DS HD sect=10 cyl=81 ssize=1024 fmt_gap=100 gap=12 swapsides # Color computer, sides 1 and 2 "COCO1": --- a/doc/setfdprm.1 +++ b/doc/setfdprm.1 @@ -90,7 +90,7 @@ .PP Without any options, \fR\&\f(CWsetfdprm\fR loads the \fIdevice\fR (for example \&\fR\&\f(CW\(if/dev/fd0\(is\fR or \fR\&\f(CW\(if/dev/fd1\(is\fR) with a new parameter set with the -\&\fIname\fR entry found in \fR\&\f(CW\(if/etc/fdprm\(is\fR (usually named 360/360, +\&\fIname\fR entry found in \fR\&\f(CW\(if/etc/mediaprm\(is\fR (usually named 360/360, etc.). For autodetecting floppy devices, these parameters stay in effect until the media is changed. For "fixed parameter" devices, they stay in effect until they are changed again. @@ -104,7 +104,7 @@ \&\fR\&\f(CW\-p\ \fIdevice\ name\fR\&\f(CW\fR\ Permanently loads a new parameter set for the specified auto-configuring floppy device for the configuration with \fIname\fR in -\&\fR\&\f(CW\(if/etc/fdprm\(is\fR. Alternatively, the parameters can be given directly +\&\fR\&\f(CW\(if/etc/mediaprm\(is\fR. Alternatively, the parameters can be given directly from the command line. .TP \&\fR\&\f(CW\-c\ \fIdevice\fR\&\f(CW\fR\ --- a/doc/setfdprm.texi +++ b/doc/setfdprm.texi @@ -19,7 +19,7 @@ Without any options, @code{setfdprm} loads the @var{device} (for example @file{/dev/fd0} or @file{/dev/fd1}) with a new parameter set with the -@var{name} entry found in @file{/etc/fdprm} (usually named 360/360, +@var{name} entry found in @file{/etc/mediaprm} (usually named 360/360, etc.). For autodetecting floppy devices, these parameters stay in effect until the media is changed. For "fixed parameter" devices, they stay in effect until they are changed again. @@ -34,7 +34,7 @@ @item -p @var{device name} Permanently loads a new parameter set for the specified auto-configuring floppy device for the configuration with @var{name} in -@file{/etc/fdprm}. Alternatively, the parameters can be given directly +@file{/etc/mediaprm}. Alternatively, the parameters can be given directly from the command line. @item -c @var{device} debian/patches/series0000644000000000000000000000121011703310375012024 0ustar makefile-destdir.patch documentation-typos.patch documentation-spelling_errors.patch documentation-man_undefined_macros.patch documentation-man_hyphens.patch documentation-info_metadata.patch documentation-superformat_print_drive_deviation.patch documentation-section_media_description.patch mediaprm-fix_etc-fdprm.patch floppymeter-confirmation_message.patch MAKEFLOPPIES-chown_separator.patch MAKEFLOPPIES-xsiisms.patch MAKEFLOPPIES-devfs.patch MAKEFLOPPIES-usage.patch superformat-devfs_floppy.patch superformat-env_variables.patch superformat-verify_later.patch fdmount-compilation_linux_2.6.patch dont_strip_binaries.patch help_messages.patch debian/patches/superformat-env_variables.patch0000644000000000000000000000114211703310375017021 0ustar Subject: [superformat] Inactivate setting of variables out of environment Author: Anthony Fok Bug-Debian: http://bugs.debian.org/12166 Last-Update: 2010-05-12 --- a/src/enh_options.c +++ b/src/enh_options.c @@ -529,6 +529,7 @@ /* setting of variables out of environment */ +/* Commented out on 1998-08-28 by AF, Re: Debian Bug#12166 for( option_index=0; option_index Bug-Debian: http://bugs.debian.org/96845 Last-Update: 2010-05-12 --- a/src/MAKEFLOPPIES +++ b/src/MAKEFLOPPIES @@ -10,6 +10,13 @@ set -e set -u + +# check for devfs +if [ -e /dev/.devfsd ]; then + echo "devfs found, skipping MAKEFLOPPIES..." >&2 + exit 0 +fi + MAJOR=2 TMPDEVICE=/dev/tmpfloppy$$ if [ ! -b /dev/fd0 ] ; then debian/patches/fdmount-compilation_linux_2.6.patch0000644000000000000000000001101511703310375017430 0ustar Description: [fdmount] Allow compilation of fdutils with linux-kernel-headers 2.5.999-test7-bk-9 This patch is still needed with Linux 2.6. Author: Jochen Voss Last-Update: 2010-05-12 --- /dev/null +++ b/src/ext2-stuff.h @@ -0,0 +1,95 @@ +/* ext2-stuff.h + * + * with linux-kernel-headers 2.5.999-test7-bk-9 installed, the fdutils + * compilation fails, because of problems with the included + * . + * + * This file contains a copy of all the necessary declarations. These + * are ripped of "ext2_fs.h" from the kernel-headers-2.4.22-1 package. + * + * This file is Copyright 2003 Jochen Voss . + * You may redistribute it under the terms of the GPL version 2. + * + * Updated 2010 by Matteo Cypriani, with contents of "ext2_fs.h" from + * Debian package linux-libc-dev 2.6.32-12. + */ + +#ifndef EXT2_STUFF_SEEN +#define EXT2_STUFF_SEEN + +#define EXT2_SUPER_MAGIC 0xEF53 +#define EXT3_SUPER_MAGIC 0xEF53 + +struct ext2_super_block { + __le32 s_inodes_count; /* Inodes count */ + __le32 s_blocks_count; /* Blocks count */ + __le32 s_r_blocks_count; /* Reserved blocks count */ + __le32 s_free_blocks_count; /* Free blocks count */ + __le32 s_free_inodes_count; /* Free inodes count */ + __le32 s_first_data_block; /* First Data Block */ + __le32 s_log_block_size; /* Block size */ + __le32 s_log_frag_size; /* Fragment size */ + __le32 s_blocks_per_group; /* # Blocks per group */ + __le32 s_frags_per_group; /* # Fragments per group */ + __le32 s_inodes_per_group; /* # Inodes per group */ + __le32 s_mtime; /* Mount time */ + __le32 s_wtime; /* Write time */ + __le16 s_mnt_count; /* Mount count */ + __le16 s_max_mnt_count; /* Maximal mount count */ + __le16 s_magic; /* Magic signature */ + __le16 s_state; /* File system state */ + __le16 s_errors; /* Behaviour when detecting errors */ + __le16 s_minor_rev_level; /* minor revision level */ + __le32 s_lastcheck; /* time of last check */ + __le32 s_checkinterval; /* max. time between checks */ + __le32 s_creator_os; /* OS */ + __le32 s_rev_level; /* Revision level */ + __le16 s_def_resuid; /* Default uid for reserved blocks */ + __le16 s_def_resgid; /* Default gid for reserved blocks */ + /* + * These fields are for EXT2_DYNAMIC_REV superblocks only. + * + * Note: the difference between the compatible feature set and + * the incompatible feature set is that if there is a bit set + * in the incompatible feature set that the kernel doesn't + * know about, it should refuse to mount the filesystem. + * + * e2fsck's requirements are more strict; if it doesn't know + * about a feature in either the compatible or incompatible + * feature set, it must abort and not try to meddle with + * things it doesn't understand... + */ + __le32 s_first_ino; /* First non-reserved inode */ + __le16 s_inode_size; /* size of inode structure */ + __le16 s_block_group_nr; /* block group # of this superblock */ + __le32 s_feature_compat; /* compatible feature set */ + __le32 s_feature_incompat; /* incompatible feature set */ + __le32 s_feature_ro_compat; /* readonly-compatible feature set */ + __u8 s_uuid[16]; /* 128-bit uuid for volume */ + char s_volume_name[16]; /* volume name */ + char s_last_mounted[64]; /* directory where last mounted */ + __le32 s_algorithm_usage_bitmap; /* For compression */ + /* + * Performance hints. Directory preallocation should only + * happen if the EXT2_COMPAT_PREALLOC flag is on. + */ + __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ + __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ + __u16 s_padding1; + /* + * Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set. + */ + __u8 s_journal_uuid[16]; /* uuid of journal superblock */ + __u32 s_journal_inum; /* inode number of journal file */ + __u32 s_journal_dev; /* device number of journal file */ + __u32 s_last_orphan; /* start of list of inodes to delete */ + __u32 s_hash_seed[4]; /* HTREE hash seed */ + __u8 s_def_hash_version; /* Default hash version to use */ + __u8 s_reserved_char_pad; + __u16 s_reserved_word_pad; + __le32 s_default_mount_opts; + __le32 s_first_meta_bg; /* First metablock block group */ + __u32 s_reserved[190]; /* Padding to the end of the block */ +}; + +#endif /* EXT2_STUFF_SEEN */ --- a/src/fdmount.c +++ b/src/fdmount.c @@ -22,7 +22,9 @@ #include #endif -#include +/* JV: the following breaks with linux-kernel-headers 2.5.999-test7-bk-9 */ +/* #include */ +#include "ext2-stuff.h" #ifdef HAVE_LINUX_XIA_FS_H #include debian/patches/MAKEFLOPPIES-usage.patch0000644000000000000000000000141111703310375014614 0ustar Subject: [MAKEFLOPPIES] Fix usage printing to fit the manpage Author: Matteo Cypriani Bug-Debian: http://bugs.debian.org/275877 Last-Update: 2010-05-12 --- a/src/MAKEFLOPPIES +++ b/src/MAKEFLOPPIES @@ -169,10 +169,8 @@ echo 'Options: -l Local (make files in local directory, not /dev) -n Dry run (just report what would be done, do not do anything) - -t Name devices for drive type - -d Name devices for drive type - -m Name devices for media type - -u Use the same letter (u) for all 3 1/2 devices + -t | -d Use the old naming convention for 3 1/2 devices (e.g. fd0H720 instead of fd0u720) + -m | -u Base the name for the created devices on the type of the media (e.g. fd0h720 instead of fd0u720) -g Allow access only for group floppy -v Verbose ' >&2 debian/patches/documentation-spelling_errors.patch0000644000000000000000000013034311703310375017722 0ustar Subject: Quick spell-check against all the documentation Author: Matteo Cypriani Bug-Debian: http://bugs.debian.org/395428 Bug-Debian: http://bugs.debian.org/525257 Last-Update: 2011-08-10 --- a/doc/fdmount.1 +++ b/doc/fdmount.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description @@ -258,7 +258,7 @@ .TP \&\fR\&\f(CWerror\ reading\ boot/super\ block\fR\ fdmount failed to read the first 1K of the disk. The disk might be -damaged, unformatted, or it may have a format wich is unsupported by the +damaged, unformatted, or it may have a format which is unsupported by the FDC or the Linux kernel. .TP \&\fR\&\f(CWunknown\ filesystem\ type\fR\ --- a/doc/fdmount.texi +++ b/doc/fdmount.texi @@ -183,7 +183,7 @@ @item error reading boot/super block fdmount failed to read the first 1K of the disk. The disk might be -damaged, unformatted, or it may have a format wich is unsupported by the +damaged, unformatted, or it may have a format which is unsupported by the FDC or the Linux kernel. @item unknown filesystem type --- a/doc/fdrawcmd.1 +++ b/doc/fdrawcmd.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description @@ -280,7 +280,7 @@ chooses rate tables for various drives. Each dspec byte describes one drive. Bits 0 and 1 say which drive is described. Bits 2 and 3 describe the rate table. Only tables 0 and 2 are interesting. Both tables only -differ in the meaning og rate 1. For table 0 (the default) rate 0 is 300 +differ in the meaning of rate 1. For table 0 (the default) rate 0 is 300 kb/s (used for 5 1/4 DD disks), whereas for table 1 it is 2 Mbps (used for fast floppy tape drives). Bit 4 is the precompensation table select bit. It should be set to 0. Bit 5-7 should be zero as well. The --- a/doc/fdrawcmd.texi +++ b/doc/fdrawcmd.texi @@ -209,7 +209,7 @@ chooses rate tables for various drives. Each dspec byte describes one drive. Bits 0 and 1 say which drive is described. Bits 2 and 3 describe the rate table. Only tables 0 and 2 are interesting. Both tables only -differ in the meaning og rate 1. For table 0 (the default) rate 0 is 300 +differ in the meaning of rate 1. For table 0 (the default) rate 0 is 300 kb/s (used for 5 1/4 DD disks), whereas for table 1 it is 2 Mbps (used for fast floppy tape drives). Bit 4 is the precompensation table select bit. It should be set to 0. Bit 5-7 should be zero as well. The --- a/doc/floppycontrol.texi +++ b/doc/floppycontrol.texi @@ -112,7 +112,7 @@ is E for 3.5 ED drives, H for 3.5 HD drives, D for 3.5 DD drives, h for 5.25 HD drives and d for 5.25 DD drives. The drive type letter corresponds to the oldest drive type supporting the format of this -device node (not necessarily the type of the drive refered by this +device node (not necessarily the type of the drive referred by this node.) For the generic format nodes (/dev/fd0 et al.) the name of "native format" of the drive is printed, and for the default formats, if a generic format has been redefined, its name becomes @code{(null)}. @@ -142,7 +142,7 @@ completed. @item probed_fmt -is the the index of the autodetected format in the autodetection +is the index of the autodetected format in the autodetection sequence for this drive. @item cylinder --- a/doc/floppycontrol.1 +++ b/doc/floppycontrol.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description @@ -175,7 +175,7 @@ is E for 3.5 ED drives, H for 3.5 HD drives, D for 3.5 DD drives, h for 5.25 HD drives and d for 5.25 DD drives. The drive type letter corresponds to the oldest drive type supporting the format of this -device node (not necessarily the type of the drive refered by this +device node (not necessarily the type of the drive referred by this node.) For the generic format nodes (/dev/fd0 et al.) the name of "native format" of the drive is printed, and for the default formats, if a generic format has been redefined, its name becomes \fR\&\f(CW(null)\fR. @@ -211,7 +211,7 @@ completed. .TP \&\fR\&\f(CWprobed_fmt\fR\ -is the the index of the autodetected format in the autodetection +is the index of the autodetected format in the autodetection sequence for this drive. .TP \&\fR\&\f(CWcylinder\fR\ --- a/doc/acronyms.texi +++ b/doc/acronyms.texi @@ -66,7 +66,7 @@ details. @item 2M (2 Megabytes) -2M is a high capacity format developped by Ciriaco de Celis. The basic +2M is a high capacity format developed by Ciriaco de Celis. The basic principle is the same as MSS: mix sectors of several sizes on a same track, in order to minimize both slack space and header overhead. 2M is different from MSS in that it uses a normal 18 sector format on its --- a/doc/autodetect.texi +++ b/doc/autodetect.texi @@ -54,7 +54,7 @@ 21). The 1680KB format is identical with the default 1440KB format except for the number of sectors. Thus we must read the whole track in order to distinguish it from the 18 sector format (@code{t} flag). -Furthermore, the the 1680KB sector format should be detected first, as +Furthermore, the 1680KB sector format should be detected first, as an 21 sector disk would also matches the standard format with its 18 sectors. @@ -89,6 +89,6 @@ Some formats use more than 80 tracks. It is not possible for the kernel to autodetect the number of tracks in a reasonable time, so you have to use a sufficiently recent version of mtools to set the number of tracks -according to the boot sector of the disk. Mtools 3.0 and up are ok. This +according to the boot sector of the disk. Mtools 3.0 and up are OK. This doesn't obviously work with disks containing something else than a MS-DOS filesystem. --- a/doc/diskd.1 +++ b/doc/diskd.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description --- a/doc/diskseekd.1 +++ b/doc/diskseekd.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description @@ -83,7 +83,7 @@ rebooting, the BIOS seeks the drive, and by doing this, it shakes the dust out of the drive mechanism. \fR\&\f(CWdiskseekd\fR simulates this effect by seeking the drive periodically. If it is called as \fR\&\f(CWdiskseek\fR, -the drive is seeked only once. +the drive is sought only once. .PP .SH Options .PP @@ -101,7 +101,7 @@ \&\fR .TP \&\fR\&\f(CW-d\ \fIdrive\fR\&\f(CW\fR\ -Selects the drive to seek. By default, drive 0 (\fR\&\f(CW\(if/dev/fd0\(is\fR) is seeked. +Selects the drive to seek. By default, drive 0 (\fR\&\f(CW\(if/dev/fd0\(is\fR) is sought. .TP \&\fR\&\f(CW-i\ \fIinterval\fR\&\f(CW\fR\ Selects the cleaning interval, in seconds. If the interval is 0, a --- a/doc/diskseekd.texi +++ b/doc/diskseekd.texi @@ -13,7 +13,7 @@ rebooting, the BIOS seeks the drive, and by doing this, it shakes the dust out of the drive mechanism. @code{diskseekd} simulates this effect by seeking the drive periodically. If it is called as @code{diskseek}, -the drive is seeked only once. +the drive is sought only once. @subsection Options @@ -24,7 +24,7 @@ @table @code @item -d @var{drive} -Selects the drive to seek. By default, drive 0 (@file{/dev/fd0}) is seeked. +Selects the drive to seek. By default, drive 0 (@file{/dev/fd0}) is sought. @item -i @var{interval} Selects the cleaning interval, in seconds. If the interval is 0, a --- a/doc/driveprm.texi +++ b/doc/driveprm.texi @@ -1,7 +1,7 @@ @node Drive descriptions, Extended formats, Media description, Top @chapter Drive descriptions -Unlike earlyer version, fdutils-5.0 separates drive descriptions and +Unlike earlier version, fdutils-5.0 separates drive descriptions and media description. For more details on this separation, @pxref{Introduction (Mediaprm)}. Drive descriptions are used to describe the hardware characteristics of a drive, such as their maximal density, @@ -45,7 +45,7 @@ @node Cmos code, Other parameters, Form factor, Syntax of a drive description @subsection Cmos code -The PC Bios already knows on its own about the most common drive types. +The PC BIOS already knows on its own about the most common drive types. These are named by an integer from 1 to 6, according to the following table. @example --- a/doc/fdutils.texi +++ b/doc/fdutils.texi @@ -89,7 +89,7 @@ @unnumbered General Introduction -Fdutils is a collection of utililties for configuring and using the +Fdutils is a collection of utilities for configuring and using the Linux floppy driver. With fdutils, you can: @enumerate --- a/doc/floppymeter.1 +++ b/doc/floppymeter.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description @@ -109,7 +109,7 @@ The rotation speed is measured by timing the return time of a \&\fR\&\f(CWreadid\fR command. In order to gain more precision, the command is issued many times in a row. During this phase, the number of rotations -til the start of the test, the average time per rotation til the start, +since the start of the test, the average time per rotation since the start, and a sliding average of the times of the last 30 rotations is printed, and updated continuously. .PP @@ -174,6 +174,6 @@ * \ \ All data transfer rates (for double, high and extra density) are derived from a same master frequency. Thus the \fIdeviation\fR of the data -transfer rate should be independant of the density used. +transfer rate should be independent of the density used. .SH See Also Fdutils' texinfo doc --- a/doc/floppymeter.texi +++ b/doc/floppymeter.texi @@ -31,7 +31,7 @@ The rotation speed is measured by timing the return time of a @code{readid} command. In order to gain more precision, the command is issued many times in a row. During this phase, the number of rotations -til the start of the test, the average time per rotation til the start, +since the start of the test, the average time per rotation since the start, and a sliding average of the times of the last 30 rotations is printed, and updated continuously. @@ -98,5 +98,5 @@ @item All data transfer rates (for double, high and extra density) are derived from a same master frequency. Thus the @emph{deviation} of the data -transfer rate should be independant of the density used. +transfer rate should be independent of the density used. @end itemize --- a/doc/getfdprm.1 +++ b/doc/getfdprm.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description --- a/doc/ioctl.texi +++ b/doc/ioctl.texi @@ -26,7 +26,7 @@ displays the type of a drive (name parameter). This is used by @code{MAKEFLOPPIES}. For the naming convention, see the description of the @code{MAKEFLOPPIES} script. For formats which work in several drive -types, @code{FDGETDRVTYP} return a name which is appropriate for the oldes +types, @code{FDGETDRVTYP} return a name which is appropriate for the oldest drive type which supports this format. @item FDSETDRVPRM sets various drive parameters. --- a/doc/lilo.texi +++ b/doc/lilo.texi @@ -1,12 +1,12 @@ @node Boottime configuration, Floppy ioctls, Autodetection, Top -@chapter Configuring the floppy driver via lilo or insmod +@chapter Configuring the floppy driver via LILO or insmod The floppy driver is configured using the @code{floppy=} options in -lilo. These options can be typed at the boot prompt, or entered in the -lilo configuration file. +LILO. These options can be typed at the boot prompt, or entered in the +LILO configuration file. Example: If your kernel is called @code{linux-2.0}, type the following -line at the lilo boot prompt (if you have a thinkpad): +line at the LILO boot prompt (if you have a Thinkpad): @example linux-2.0 floppy=thinkpad @end example @@ -22,7 +22,7 @@ append = "floppy=daring floppy=two_fdc" @end example -If you give options both in the lilo config file and on the boot +If you give options both in the LILO configuration file and on the boot prompt, the option strings of both places are concatenated, the boot prompt options coming last. That's why there are also options to restore the default behaviour. @@ -90,12 +90,12 @@ @item floppy=omnibook @itemx floppy=nodma -Tells the floppy driver not to use Dma for data transfers. This is +Tells the floppy driver not to use DMA for data transfers. This is needed for instance on some HP Omnibooks, which don't have a workable DMA channel for the floppy driver. This option is also useful if you -frequently get "Unable to allocate DMA memory" messages. Indeed, dma +frequently get "Unable to allocate DMA memory" messages. Indeed, DMA memory needs to be continuous in physical memory, and is thus harder to -find, whereas non-dma buffers may be allocated in virtual memory. +find, whereas non-DMA buffers may be allocated in virtual memory. However, I advise against this if you have an FDC without a FIFO (8272A or 82072). 82072A and later are OK. You also need at least a 486 to use nodma. If you use nodma mode, I suggest you also set the FIFO threshold @@ -121,23 +121,23 @@ system). If this is lower, the interrupt latency should be lower too (faster processor). The benefit of a lower threshold is less interrupts. -To tune the fifo threshold, switch on over/underrun messages using +To tune the FIFO threshold, switch on over/underrun messages using @code{floppycontrol --messages}. Then access a floppy disk. If you get a -huge amount of @code{Over/Underrun - retrying} messages, then the fifo +huge amount of @code{Over/Underrun - retrying} messages, then the FIFO threshold is too low. Try with a higher value, until you only get an -occasional Over/Underrun. It is a good idea to compile the floppy +occasional over/underrun. It is a good idea to compile the floppy driver as a module when doing this tuning. Indeed, it allows to try -different fifo values without rebooting the machine for each test. Note +different FIFO values without rebooting the machine for each test. Note that you need to do @code{floppycontrol --messages} every time you re-insert the module. -Usually, tuning the fifo threshold should not be needed, as the default +Usually, tuning the FIFO threshold should not be needed, as the default (0xa) is reasonable. @item floppy=@var{drive},@var{type},cmos -Sets the cmos type of @var{drive} to @var{type}. Additionnaly, this +Sets the CMOS type of @var{drive} to @var{type}. Additionally, this drive is allowed in the bitmask. This is useful if you have more than -two floppy drives (only two can be described in the physical cmos), or +two floppy drives (only two can be described in the physical CMOS), or if your BIOS uses non-standard CMOS types. The CMOS types are: @table @code @item 0 @@ -160,7 +160,7 @@ initially chosen to represent floppy tapes, and 6 for ED drives. AMI ignored this, and used 5 for ED drives. That's why the floppy driver handles both) Setting the CMOS to 0 for the first two drives (default) -makes the floppy driver read the physical cmos for those drives. +makes the floppy driver read the physical CMOS for those drives. @item floppy=unexpected_interrupts Print a warning message when an unexpected interrupt is received @@ -178,7 +178,7 @@ whenever the device node is reopened. Needed on some boxes where the disk change line is broken or unsupported. This should be regarded as a stopgap measure, indeed it makes floppy operation less efficient due to -unneeded cache flushings, and slightly more unreliable. Please verify +unneeded cache flushing, and slightly more unreliable. Please verify your cable, connection and jumper settings if you have any DCL problems. However, some older drives, and also some Laptops are known not to have a DCL. --- a/doc/location.texi +++ b/doc/location.texi @@ -13,7 +13,7 @@ ftp://tsx-11.mit.edu/pub/linux/sources/sbin/fdutils-5.5.tar.gz @end example -The FAQ included in this package is also available separetely at: +The FAQ included in this package is also available separately at: @example http://alain.knaff.linux.lu/floppy/FAQ.html http://www.tux.org/pub/knaff/floppy/FAQ.html --- a/doc/makefloppies.1 +++ b/doc/makefloppies.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description @@ -128,7 +128,7 @@ \&\fR\&\f(CW\(iffloppy\(is\fR .PP .SH Bugs -The Makefloppies script does not work on redefined "default" formats, If +The MAKEFLOPPIES script does not work on redefined "default" formats, If you redefine default formats, you need to create the needed device nodes manually. .SH See Also --- a/doc/README +++ b/doc/README @@ -24,7 +24,7 @@ 4. Access to various internal driver structures, and drive configuration using the floppycontrol program. -Floppy ioctls: +Floppy ioctls: ============== All these ioctl's may be issued using the floppycontrol program. (See also @@ -43,7 +43,7 @@ 6. FDGETDRVTYP displays the type of a drive (name parameter). This is used by MAKEFLOPPIES. For the naming convention, see the description of the MAKEFLOPPIES script. For formats which work in several drive -types, FDGETDRVTYP return a name which is appropriate for the oldes +types, FDGETDRVTYP return a name which is appropriate for the oldest drive type which supports this format. 7. FDSETDRVPRM sets various drive parameters. 8. FDGETDRVPRM reads these parameters back. @@ -73,14 +73,14 @@ Some formats use more than 80 tracks. It is not possible for the kernel to autodetect the number of tracks in a reasonable time, so you -have to use a sufficiently recent version of mtools o set the number +have to use a sufficiently recent version of mtools or set the number of tracks according to the boot sector of the disk. Mtools 2.5 and up -are ok. This doesn't obviously work with disks containing something +are OK. This doesn't obviously work with disks containing something else than a MSDOS filesystem. The minor device number for the floppy devices is calculated as follows: - minor_device = format_nr * 4 + 128 * fdc_nr + unit_nr + minor_device = format_nr * 4 + 128 * fdc_nr + unit_nr (fdc_nr identifies the floppy disk controller, and unit_nr identifies which drive on the floppy disk controller to be used) @@ -129,7 +129,7 @@ type of the drive in which this format is used. The formats 0..8 are the standard PC formats, 9 is apparently needed -for certain weird CompaQ computers. The remaining formats are extended +for certain weird Compaq computers. The remaining formats are extended capacity formats. Some of them have been taken from Heiko Schroeder's fdpatches (after correcting some minor bugs). Others have been added by David Niemi and me (Alain Knaff). Formats 30 and 31 are @@ -151,13 +151,13 @@ Example: Make a device entry for a 1.74MB floppy in drive 0: - The format number is 19, drive 0, floppy disk controller 0 so - the minor device number is 128*0+4*19+0=76. The command line to make + The format number is 19, drive 0, floppy disk controller 0 so + the minor device number is 128*0+4*19+0=76. The command line to make the new device entry is: mknod /dev/fd0H1743 b 2 76 ^ ^ ^ ^ | | | Minor device number - | | Major device number (always 2!) + | | Major device number (always 2!) | Blockdevice A name that you choose for the format. I recommend the names I used in floppy.c, but @@ -195,7 +195,7 @@ Although most drives support more than 80 tracks some may not, and repeatedly trying to read beyond track 80 might be damaging to them. -In order to know wether your drive supports more than eighty tracks, +In order to know whether your drive supports more than eighty tracks, first set the number of allowed tracks to 82. (using floppycontrol --tracks 82 -d ) Then format a disks with a 82 track format (for example @@ -218,14 +218,14 @@ N.B. I have yet to see a 3.5" drive which doesn't support 82 tracks. If you have such a beast, please mail me. - Configuring the floppy driver via lilo: + Configuring the floppy driver via LILO: ======================================= The floppy driver is configured using the 'floppy=' option in -lilo. This option can be typed at the boot prompt, or entered in the -lilo configuration file. +LILO. This option can be typed at the boot prompt, or entered in the +LILO configuration file. Example: If your kernel is called linux-72, type the following line -at the lilo boot prompt (if you have a thinkpad): +at the LILO boot prompt (if you have a Thinkpad): linux-72 floppy=thinkpad You may also enter the following line in /etc/lilo.conf, in the description of linux-72: @@ -235,7 +235,7 @@ linux-72 floppy=daring floppy=two_fdc append = "floppy=daring floppy=two_fdc" - If you give options both in the lilo config file and on the boot + If you give options both in the LILO configuration file and on the boot prompt, the option strings of both places are concatenated, the boot prompt options coming last. That's why there are also options to restore the default behaviour. @@ -269,9 +269,9 @@ Tells the floppy driver that you don't have a Thinkpad. floppy=,,cmos - Sets the cmos type of to . Additionnaly, this drive is + Sets the CMOS type of to . Additionally, this drive is allowed in the bitmask. This is useful if you have more than two - floppy drives (only two can be described in the physical cmos), or if + floppy drives (only two can be described in the physical CMOS), or if your BIOS uses non-standard CMOS types. The CMOS types are: 0 - unknown or not installed 1 - 5 1/4 DD @@ -285,10 +285,10 @@ AMI ignored this, and used 5 for ED drives. That's why the floppy driver handles both) Setting the CMOS to 0 for the first two drives (default) makes the - floppy driver read the physical cmos for those drives. + floppy driver read the physical CMOS for those drives. floppy=unexpected_interrupts - Print a warning message when an unexpected interrupt is received + Print a warning message when an unexpected interrupt is received (default behaviour) floppy=no_unexpected_interrupts @@ -307,7 +307,7 @@ (error reporting, operation abortion, and read track), prints out drive drive types, and flushes buffers. There is a -h help option. This program provides examples on how to use the new ioctl's. - + To compile this program just type make in the util directory. See also the included manpage. (in the utils directory) @@ -315,7 +315,7 @@ 2. MAKEFLOPPIES. This shell script creates the new floppy block device files. It uses the floppycontrol program to translate the minor device numbers into meaningful names. It also uses these names -to decide wether to create a given block device file or not, depending +to decide whether to create a given block device file or not, depending on the type of the physical drive (for instance, for a 3 1/2 drive, the formats corresponding to a 5 1/4 drive are not created). If you have more than two floppy drives, the kernel cannot find out @@ -373,11 +373,11 @@ *formats with bigger sectors: - There is only one utility which can do this: + There is only one utility which can do this: 2m20 (by Ciriaco Garcia) - You can get this program from + You can get this program from nic.switch.ch:/mirror/msdos/diskutil/2m20.zip - (for other adresses, see archie) + (for other addresses, see archie) This program uses a normal format for the first track and first head (18 sectors), and enhanced formats for the other tracks (up to @@ -392,7 +392,7 @@ ========== There are man pages for mtools (in mtools/) and the utilities (in -utils/) included. There's also a FAQ list. It is regularily updated on +utils/) included. There's also a FAQ list. It is regularly updated on http://fdutils.linux.lu/FAQ.html . You can find alpha versions of fdutils on http://fdutils.linux.lu/ . (They are named fduddmm.taz, where dd stands for the day and mm for the month. I'll only leave --- a/doc/makefloppies.texi +++ b/doc/makefloppies.texi @@ -53,6 +53,6 @@ @end table @subsection Bugs -The Makefloppies script does not work on redefined "default" formats, If +The MAKEFLOPPIES script does not work on redefined "default" formats, If you redefine default formats, you need to create the needed device nodes manually. --- a/doc/man-warning.texi +++ b/doc/man-warning.texi @@ -2,7 +2,7 @@ @unnumbered Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -18,11 +18,11 @@ @end example @item -To generate a html copy, run: +To generate a HTML copy, run: @example ./configure; make html @end example -A premade html can be found at: +A pre-made HTML can be found at: @file{http://www.tux.org/pub/knaff/fdutils} @item @@ -32,6 +32,6 @@ @end example @end itemize -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. --- a/doc/mediaprm.texi +++ b/doc/mediaprm.texi @@ -13,8 +13,8 @@ Fdutils-5.0 introduces a new uniform format description, which is supported both by setfdprm and superformat. The new format description -is easyer to handle, because it allows to set the different parameters -of a format description in a symbolic and position independant way, +is easier to handle, because it allows to set the different parameters +of a format description in a symbolic and position independent way, using a series of @emph{variable=value} clauses. Moreover, it automatically fills in sensible default values for unspecified parameters. Thus you only need to describe those aspects of the format @@ -142,7 +142,7 @@ @node Legacy formats, Expert options, Selecting non-standard sector sizes, Syntax @subsection Legacy formats -The @code{swapsides} format allows to descibe disks whose sides are +The @code{swapsides} format allows to describe disks whose sides are swapped, such as CBM1581 disks. @node Expert options,, Legacy formats, Syntax --- a/doc/moredata.texi +++ b/doc/moredata.texi @@ -38,7 +38,7 @@ in a same track * Smart use of the dtr:: How to get more out of your disk by playing games with the data transfer rate -* 2M:: Make autodetection easyer by using a readable +* 2M:: Make autodetection easier by using a readable first track * XDF:: Fast high capacity formats * XXDF:: Fast formats with even higher capacity @@ -70,7 +70,7 @@ This shows that we can fit 12450 / 619 = 20 sectors per track. -@strong{Usage:} These disks are bootable by Lilo, and can be read in +@strong{Usage:} These disks are bootable by LILO, and can be read in MS-DOS using numerous shareware utilities such as @code{vgacopy}, or @code{fdformat} or many others. Check your nearest Simtel mirror. @@ -144,7 +144,7 @@ @strong{Usage:} Once formatted, interleaved disks can be used in a similar way to disks which have simply more tracks. They can be -accessed using @code{vgacopy} in Dos, you can boot from them using Lilo, +accessed using @code{vgacopy} in Dos, you can boot from them using LILO, and you may install any filesystem on them. @@ -174,7 +174,7 @@ The principle of sector skewing is to start each track a little bit later than the previous one, i.e. the first logical sector of the second -cylinder would for exemple lie near the sixth logical sector of the +cylinder would for example lie near the sixth logical sector of the first cylinder. This is done in order to account for the time needed to seek the drive head from the first cylinder to the second. Without skewing, the first sector would already have passed the drive head after @@ -208,7 +208,7 @@ Although most drives support more than 80 tracks, I have heard rumors that some do not, and repeatedly trying to read beyond track 80 might be -damaging to them. In order to know wether your drive supports more than +damaging to them. In order to know whether your drive supports more than eighty tracks, first set the number of allowed tracks to 82. (using @code{floppycontrol --cylinders 82 -d }@var{drive}) @@ -314,7 +314,7 @@ @strong{Usage:} There is no known MS-DOS utility which can read basic -MSS disks. Lilo is not yet able to boot from this kind of disks. +MSS disks. LILO is not yet able to boot from this kind of disks. @strong{Performance:} As any format with larger sectors, the performance for small reads and writes is worse due to the larger granularity. @@ -352,7 +352,7 @@ this section consists in using the faster data transfer rate intended for 5 1/4 disks on 3 1/2 disks, and thus boost the raw capacity per track of these disks. This is possible because 300 kb/s is still low -enough not to excede the specification of the disk surface of a double +enough not to exceed the specification of the disk surface of a double density disk (which 500 kb/s would). @@ -369,7 +369,7 @@ We use the @code{QD} density selector to describe this particular DTR set-up, although the acronym @code{QD} is already taken to name 96tpi -double density 5 1/4 disks. However, as this dtr trickery is only +double density 5 1/4 disks. However, as this DTR trickery is only meaningful for 3 1/2, we hope that there will be no ambiguity. @@ -446,7 +446,7 @@ sized sectors and too small gaps. XDF's sector arrangement allows it to read sectors alternatively from both sides, i.e. the first sector from side 0, the second from side 1, and the third from side 0 again. This -differs from the usualy formats, where first the entire side 0 is read, +differs from the usually formats, where first the entire side 0 is read, and then the entire side 1. This technique allows to read both sides of a disk in roughly three rotations. @@ -495,7 +495,7 @@ stop at a higher position than we started, and that we also need to allow some time for seeking to the next track). -MSS or 2M formats of the same capacity nead at least 2 rotations per +MSS or 2M formats of the same capacity need at least 2 rotations per side (i.e. 4 per track), yielding a lower throughput. @strong{Usage:} XDF disks are not bootable by LILO. They can be @@ -513,8 +513,8 @@ 3 1/2 ED 3840KB 102KB/s xdfcopy -2 /dev/fd0 @end example -The options @code{-1}, @code{-2} and @code{-3} descibre one out of the -five formats understoood by @code{xdfcopy} (3 XDF formats and 2 XDF +The options @code{-1}, @code{-2} and @code{-3} describe one out of the +five formats understood by @code{xdfcopy} (3 XDF formats and 2 XDF formats). @node XXDF,, XDF, Extended formats --- a/doc/setfdprm.1 +++ b/doc/setfdprm.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description --- a/doc/superformat.1 +++ b/doc/superformat.1 @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description @@ -102,7 +102,7 @@ \&\fR\&\f(CWmformat\fR in order to put an MS-DOS filesystem on it. You may ignore this filesystem, if you don't need it. .PP -Superformat allows to format 2m formats. Be aware, however, that these +Superformat allows one to format 2m formats. Be aware, however, that these \&\fR\&\f(CW2m\fR formats were specifically designed to hold an MS-DOS filesystem, and that they take advantage of the fact that the MS-DOS filesystem uses redundant sectors on the first track (the FAT, which is --- a/doc/utilities.texi +++ b/doc/utilities.texi @@ -19,7 +19,7 @@ This shell script creates the new floppy block device files. It uses the floppycontrol program to translate the minor device numbers into meaningful names. It also uses these names -to decide wether to create a given block device file or not, depending +to decide whether to create a given block device file or not, depending on the type of the physical drive (for instance, for a 3 1/2 drive, the formats corresponding to a 5 1/4 drive are not created). If you have more than two floppy drives, the kernel cannot find out --- a/doc/xdfcopy.1 +++ b/doc/xdfcopy.1 @@ -1,6 +1,6 @@ .TH xdfcopy 1 "03Mar05" fdutils-5.5 .SH Name -xdfcopy - Program to copy and format Xdf disks in Linux +xdfcopy - copy and format XDF disks in Linux '\" t .de TQ .br @@ -15,7 +15,7 @@ .SH Note This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some -items, such as crossreferences, footnotes and indices are lost in this +items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information about @@ -38,7 +38,7 @@ \&\fR .TP * \ \ -To generate a html copy, run: +To generate a HTML copy, run: .nf .ft 3 @@ -49,7 +49,7 @@ .ft R .lp -\&\fRA premade html can be found at: +\&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR .TP * \ \ @@ -66,7 +66,7 @@ \&\fR .PP -The texinfo doc looks most pretty when printed or as html. Indeed, in +The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description --- a/doc/cmdname +++ b/doc/cmdname @@ -9,4 +9,4 @@ MAKEFLOPPIES - Creates the default floppy device nodes. setfdprm - sets user-provided floppy disk parameters superformat - format floppies -xdfcopy - Program to copy and format Xdf disks in Linux +xdfcopy - copy and format XDF disks in Linux --- a/doc/superformat.texi +++ b/doc/superformat.texi @@ -24,7 +24,7 @@ @code{mformat} in order to put an MS-DOS filesystem on it. You may ignore this filesystem, if you don't need it. -Superformat allows to format 2m formats. Be aware, however, that these +Superformat allows one to format 2m formats. Be aware, however, that these @code{2m} formats were specifically designed to hold an MS-DOS filesystem, and that they take advantage of the fact that the MS-DOS filesystem uses redundant sectors on the first track (the FAT, which is debian/patches/documentation-typos.patch0000644000000000000000000002377511703310375015701 0ustar Subject: Fix many typos in the documentation Last-Update: 2010-05-12 --- a/doc/README +++ b/doc/README @@ -303,7 +303,7 @@ Included utilities: =================== - 1. floppycontrol. This program sets the various error tresholds + 1. floppycontrol. This program sets the various error thresholds (error reporting, operation abortion, and read track), prints out drive drive types, and flushes buffers. There is a -h help option. This program provides examples on how to use the new ioctl's. --- a/doc/fdrawcmd.1 +++ b/doc/fdrawcmd.1 @@ -81,7 +81,7 @@ .in +0.3i \&\fR\&\f(CWfdrawcmd [\fR\&\f(CWdrive=\fIdrive\fR\&\f(CW] [\fR\&\f(CWrate=\fIrate\fR\&\f(CW] [\fR\&\f(CWlength=\fIlength\fR\&\f(CW] [\fR\&\f(CWrepeat=\fIrepeat\fR\&\f(CW] -[\fR\&\f(CWcylinder=\fIphysical-cyl\fR\&\f(CW] \fIcommand\fR\&\f(CW [\fIparamters\fR\&\f(CW \&...] [\fImode\fR\&\f(CW] +[\fR\&\f(CWcylinder=\fIphysical-cyl\fR\&\f(CW] \fIcommand\fR\&\f(CW [\fIparameters\fR\&\f(CW \&...] [\fImode\fR\&\f(CW] .fi .in -0.3i .ft R @@ -233,12 +233,12 @@ Sets the perpendicular mode. Use 0 for normal, 2 for 500kb/s perpendicular, and 3 for 1 Mb/s perpendicular. .TP -\&\fR\&\f(CWseek-out\ \fIdrvsel\ n\fR\&\f(CW\fR\ +\&\fR\&\f(CWseek_out\ \fIdrvsel\ n\fR\&\f(CW\fR\ does a relative seek of \&\fIn\fR cylinders towards cylinder 0. .TP -\&\fR\&\f(CWseek-in\ \ \fIdrvsel\ n\fR\&\f(CW\fR\ +\&\fR\&\f(CWseek_in\ \ \fIdrvsel\ n\fR\&\f(CW\fR\ does a relative seek of \fIn\fR cylinders away from cylinder 0. .PP .SS Commands\ available\ on\ 82077AA\ and\ later --- a/doc/fdrawcmd.texi +++ b/doc/fdrawcmd.texi @@ -8,7 +8,7 @@ @example @code{fdrawcmd} [@code{drive=}@var{drive}] [@code{rate=}@var{rate}] [@code{length=}@var{length}] [@code{repeat=}@var{repeat}] -[@code{cylinder=}@var{physical-cyl}] @var{command} [@var{paramters} @dots{}] [@var{mode}] +[@code{cylinder=}@var{physical-cyl}] @var{command} [@var{parameters} @dots{}] [@var{mode}] @end example @code{fdrawcmd} @@ -158,12 +158,12 @@ Sets the perpendicular mode. Use 0 for normal, 2 for 500kb/s perpendicular, and 3 for 1 Mb/s perpendicular. -@item seek-out @var{drvsel n} +@item seek_out @var{drvsel n} does a relative seek of @var{n} cylinders towards cylinder 0. -@item seek-in @var{drvsel n} +@item seek_in @var{drvsel n} does a relative seek of @var{n} cylinders away from cylinder 0. @end table --- a/doc/floppycontrol.1 +++ b/doc/floppycontrol.1 @@ -578,28 +578,28 @@ are performed at the next retry. The counter is reset when the read or write finally terminates, whether successfully or not. .TP -\&\fR\&\f(CW-a\ \fIoperation-abort-trshld\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW-a\ \fIoperation-abort-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--abort\ \fI\ operation-abort-trshld\fR\&\f(CW\fR +\&\fR\&\f(CW--abort\ \fI\ operation-abort-threshold\fR\&\f(CW\fR Tell the floppy driver to stop trying to read/write a sector after -\&\fIoperation-abort-trshld\fR +\&\fIoperation-abort-threshold\fR retries, and signal the I/O error to the user. .TP -\&\fR\&\f(CW-t\ \fIread-track-trshld\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW-t\ \fIread-track-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--readtrack\ \fI\ read-track-trshld\fR\&\f(CW\fR +\&\fR\&\f(CW--readtrack\ \fI\ read-track-threshold\fR\&\f(CW\fR Tell the floppy driver to switch from track-reading mode to sector-at-a-time-mode after -\&\fIread-track-trshld\fR +\&\fIread-track-threshold\fR retries. .TP -\&\fR\&\f(CW-r\ \fIrecalibrate-trshld\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW-r\ \fIrecalibrate-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--recalibrate\ \fI\ recalibrate-trshld\fR\&\f(CW\fR +\&\fR\&\f(CW--recalibrate\ \fI\ recalibrate-threshold\fR\&\f(CW\fR Tell the floppy driver to recalibrate the drive after -\&\fIrecalibrate-trshld\fR retries. +\&\fIrecalibrate-threshold\fR retries. .TP -\&\fR\&\f(CW-R\ \fIreset-treshold\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW-R\ \fIreset-threshold\fR\&\f(CW\ \fR\ .TQ \&\fR\&\f(CW--reset\ \fI\ reset-threshold\fR\&\f(CW\fR Tell the floppy driver to reset the controller after @@ -607,11 +607,11 @@ driver also recalibrates all drives connected to that controller. .IP .TP -\&\fR\&\f(CW-e\ \fIerror-report-trshld\fR\&\f(CW\ \fR\ +\&\fR\&\f(CW-e\ \fIerror-report-threshold\fR\&\f(CW\ \fR\ .TQ -\&\fR\&\f(CW--reporting\ \fI\ error-report-trshld\fR\&\f(CW\fR +\&\fR\&\f(CW--reporting\ \fI\ error-report-threshold\fR\&\f(CW\fR Tell the floppy driver to start printing error messages to the console -after \fIerror-report-trshld\fR retries. +after \fIerror-report-threshold\fR retries. .PP .SH Write\ error\ reporting .PP --- a/doc/floppycontrol.texi +++ b/doc/floppycontrol.texi @@ -504,34 +504,34 @@ are performed at the next retry. The counter is reset when the read or write finally terminates, whether successfully or not. @table @code -@item -a @var{operation-abort-trshld} -@itemx --abort @var{ operation-abort-trshld} +@item -a @var{operation-abort-threshold} +@itemx --abort @var{ operation-abort-threshold} Tell the floppy driver to stop trying to read/write a sector after -@var{operation-abort-trshld} +@var{operation-abort-threshold} retries, and signal the I/O error to the user. -@item -t @var{read-track-trshld} -@itemx --readtrack @var{ read-track-trshld} +@item -t @var{read-track-threshold} +@itemx --readtrack @var{ read-track-threshold} Tell the floppy driver to switch from track-reading mode to sector-at-a-time-mode after -@var{read-track-trshld} +@var{read-track-threshold} retries. -@item -r @var{recalibrate-trshld} -@itemx --recalibrate @var{ recalibrate-trshld} +@item -r @var{recalibrate-threshold} +@itemx --recalibrate @var{ recalibrate-threshold} Tell the floppy driver to recalibrate the drive after -@var{recalibrate-trshld} retries. +@var{recalibrate-threshold} retries. -@item -R @var{reset-treshold} +@item -R @var{reset-threshold} @itemx --reset @var{ reset-threshold} Tell the floppy driver to reset the controller after @var{reset-threshold} retries. After a controller reset, the floppy driver also recalibrates all drives connected to that controller. -@item -e @var{error-report-trshld} -@itemx --reporting @var{ error-report-trshld} +@item -e @var{error-report-threshold} +@itemx --reporting @var{ error-report-threshold} Tell the floppy driver to start printing error messages to the console -after @var{error-report-trshld} retries. +after @var{error-report-threshold} retries. @end table --- a/doc/floppymeter.1 +++ b/doc/floppymeter.1 @@ -111,7 +111,7 @@ issued many times in a row. During this phase, the number of rotations til the start of the test, the average time per rotation til the start, and a sliding average of the times of the last 30 rotations is printed, -and updated continously. +and updated continuously. .PP The data transfer rate is deduced from the two parameters above. .PP @@ -149,7 +149,7 @@ .TP \&\fR\&\f(CW-f\fR\ Runs the measurement non interactively. With this option, the program -doesn't ask for confirmation, and doesn't display the continously +doesn't ask for confirmation, and doesn't display the continuously updated values during the rotation speed measurement. .TP \&\fR\&\f(CW-W\ \fIWindow\fR\&\f(CW\fR\ --- a/doc/floppymeter.texi +++ b/doc/floppymeter.texi @@ -33,7 +33,7 @@ issued many times in a row. During this phase, the number of rotations til the start of the test, the average time per rotation til the start, and a sliding average of the times of the last 30 rotations is printed, -and updated continously. +and updated continuously. The data transfer rate is deduced from the two parameters above. @@ -72,7 +72,7 @@ @item -f Runs the measurement non interactively. With this option, the program -doesn't ask for confirmation, and doesn't display the continously +doesn't ask for confirmation, and doesn't display the continuously updated values during the rotation speed measurement. @item -W @var{Window} --- a/doc/makefloppies.1 +++ b/doc/makefloppies.1 @@ -1,4 +1,4 @@ -.TH makefloppies 1 "03Mar05" fdutils-5.5 +.TH makefloppies 8 "03Mar05" fdutils-5.5 .SH Name MAKEFLOPPIES - Creates the default floppy device nodes. '\" t --- a/doc/superformat.1 +++ b/doc/superformat.1 @@ -102,7 +102,7 @@ \&\fR\&\f(CWmformat\fR in order to put an MS-DOS filesystem on it. You may ignore this filesystem, if you don't need it. .PP -Supeformat allows to format 2m formats. Be aware, however, that these +Superformat allows to format 2m formats. Be aware, however, that these \&\fR\&\f(CW2m\fR formats were specifically designed to hold an MS-DOS filesystem, and that they take advantage of the fact that the MS-DOS filesystem uses redundant sectors on the first track (the FAT, which is @@ -293,7 +293,7 @@ \&\fR .PP -N.B. For simplicitie's sake, this example expresses skews in units of +N.B. For simplicity's sake, this example expresses skews in units of sectors. In reality, superformat expects the skews to be expressed in raw bytes. .PP --- a/doc/superformat.texi +++ b/doc/superformat.texi @@ -24,7 +24,7 @@ @code{mformat} in order to put an MS-DOS filesystem on it. You may ignore this filesystem, if you don't need it. -Supeformat allows to format 2m formats. Be aware, however, that these +Superformat allows to format 2m formats. Be aware, however, that these @code{2m} formats were specifically designed to hold an MS-DOS filesystem, and that they take advantage of the fact that the MS-DOS filesystem uses redundant sectors on the first track (the FAT, which is @@ -216,7 +216,7 @@ track 2 head 1: 3,4,5,6,1,2 (skew=4) @end example -N.B. For simplicitie's sake, this example expresses skews in units of +N.B. For simplicity's sake, this example expresses skews in units of sectors. In reality, superformat expects the skews to be expressed in raw bytes. --- a/doc/utilities.texi +++ b/doc/utilities.texi @@ -6,7 +6,7 @@ @table @code @item floppycontrol -This program sets the various error tresholds (error reporting, +This program sets the various error thresholds (error reporting, operation abortion, and read track), prints out drive drive types, and flushes buffers. There is a -h help option. This program provides examples on how to use the new ioctl's. debian/patches/documentation-superformat_print_drive_deviation.patch0000644000000000000000000000210711703310375023523 0ustar Subject: Document --print-drive-deviation in superformat(1) Author: Matteo Cypriani Bug-Debian: http://bugs.debian.org/331491 Bug-Debian: http://bugs.debian.org/331489 Last-Update: 2010-10-07 --- a/doc/superformat.1 +++ b/doc/superformat.1 @@ -165,6 +165,11 @@ .TQ \&\fR\&\f(CW\-\-noverify\fR Skips the verification altogether. +.TP +\&\fR\&\f(CW\-\-print\-drive\-deviation\fR\ +Does not format, but prints the drive deviation. If file /etc/driveprm +exists and provides a deviation for the drive, nothing is printed and +the disk is not formatted. .PP .SH Advanced\ Options Usually, superformat uses sensible default values for these options, --- a/doc/superformat.texi +++ b/doc/superformat.texi @@ -100,6 +100,11 @@ @itemx --noverify Skips the verification altogether. +@item --print-drive-deviation +Do not format, but print the drive deviation. If file +@file{/etc/driveprm} exists and provides a deviation for the drive, +nothing is printed and the disk is not formatted. + @end table @node Advanced options, Sector skewing options, Common options, superformat debian/patches/documentation-man_undefined_macros.patch0000644000000000000000000002174311703310375020654 0ustar Description: manpage-has-errors-from-man "macro not defined" Delete all occurrences of ".lp" and ".iX" in manpages to get rid of this lintian warnings. Author: Matteo Cypriani Last-Update: 2010-05-12 --- a/doc/diskd.1 +++ b/doc/diskd.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,7 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p diskd" .PP The diskd command has the following syntax: .PP @@ -82,7 +78,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/diskseekd.1 +++ b/doc/diskseekd.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,9 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p diskseekd" -.iX "c dust (shaking it off from a drive)" -.iX "c shaking off dust from a drive" .PP Several people have noticed that Linux has a bad tendency of killing floppy drives. These failures remained completely mysterious, until @@ -96,7 +90,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP --- a/doc/fdmount.1 +++ b/doc/fdmount.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,11 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p fdmount" -.iX "p fdmountd" -.iX "p fdlist" -.iX "p fdumount" -.iX "c automounting" .PP .nf @@ -97,7 +89,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/fdrawcmd.1 +++ b/doc/fdrawcmd.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,10 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p fdrawcmd" -.iX "c raw command" -.iX "c low level interaction with floppy driver" -.iX "c direct interaction with floppy driver" .PP .nf @@ -85,7 +78,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -152,7 +144,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/floppycontrol.1 +++ b/doc/floppycontrol.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,8 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p floppycontrol" -.iX "c configuration of floppy driver" .PP .nf @@ -93,7 +88,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -114,9 +108,6 @@ (\fR\&\f(CW\(if/dev/fd0\(is\fR). .PP .SH One\ time\ actions -.iX "c ejecting a disk" -.iX "c flushing floppy cache" -.iX "c resetting controller" .PP The following \fR\&\f(CWfloppycontrol\fR options don't set a configuration parameter, but perform a one-time action. They are available to anybody @@ -161,9 +152,6 @@ this. .PP .SH Printing\ current\ settings -.iX "c printing current settings" -.iX "c determining drive type" -.iX "c detecting a disk change" .IP .TP \&\fR\&\f(CW-T\fR\ @@ -320,9 +308,6 @@ .RE .PP .SH Drive\ type\ configuration\ and\ autodetection -.iX "c CMOS type" -.iX "c drive type" -.iX "c swapping drives" .PP The following options handle the different available drive types, such as double density vs. high density vs. extra density drives, and 5 1/4 @@ -392,7 +377,6 @@ .fi .in -0.3i .ft R -.lp \&\fRmeans to try out the formats whose minor device numbers are 28 (1.44M), 16 (720KB), 96 (1.76MB), and 100 (1.92MB), in this order. For the 1.76MB @@ -424,10 +408,6 @@ create. .PP .SH Configuration\ of\ the\ disk\ change\ line -.iX "c disk change line" -.iX "c Thinkpad" -.iX "c disk change detection" -.iX "c disk absent during operation (false alert)" .TP \&\fR\&\f(CW--broken_dcl\fR\ Assumes that the disk change line of the drive is broken. If this is @@ -478,7 +458,6 @@ Switches off silent disk change line clearing for this drive. .PP .SH Timing\ Parameters -.iX "c strange noises during seek" .PP This section describes how to configure drive timings. To set these parameters, you need superuser privileges. All times are in "jiffy" --- a/doc/floppymeter.1 +++ b/doc/floppymeter.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,9 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p floppymeter" -.iX "c rotation speed" -.iX "c raw capacity" .PP .nf @@ -83,7 +77,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/getfdprm.1 +++ b/doc/getfdprm.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,9 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p getfdprm" -.iX "c reading back the geometry information" -.iX "c geometry information (reading back)" .PP .nf @@ -82,7 +76,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/makefloppies.1 +++ b/doc/makefloppies.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -79,7 +76,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/setfdprm.1 +++ b/doc/setfdprm.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,9 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p setfdprm" -.iX "c setting the geometry information" -.iX "c geometry information (setting)" .PP .nf @@ -85,7 +79,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/superformat.1 +++ b/doc/superformat.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,8 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p superformat" -.iX "c formatting disks (non XDF)" .PP .nf @@ -86,7 +81,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -289,7 +283,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -310,7 +303,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -323,7 +315,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -336,7 +327,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -349,7 +339,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -363,7 +352,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -377,7 +365,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -392,7 +379,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP --- a/doc/xdfcopy.1 +++ b/doc/xdfcopy.1 @@ -33,7 +33,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP @@ -47,7 +46,6 @@ .fi .in -0.3i .ft R -.lp \&\fRA pre-made HTML can be found at: \&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR @@ -62,7 +60,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -70,9 +67,6 @@ the info version certain examples are difficult to read due to the quoting conventions used in info. .SH Description -.iX "p xdfcopy" -.iX "c XDF (formatting and copying disks)" -.iX "c formatting XDF disks" .PP .nf @@ -83,7 +77,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .PP @@ -144,7 +137,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .IP @@ -157,7 +149,6 @@ .fi .in -0.3i .ft R -.lp \&\fR .TP debian/patches/floppymeter-confirmation_message.patch0000644000000000000000000000110111703310375020367 0ustar Subject: [floppymeter] Improve initial confirmation message Author: Jari Aalto Bug-Debian: http://bugs.debian.org/306097 Bug-Debian: http://bugs.debian.org/298046 Last-Update: 2010-05-12 --- a/src/floppymeter.c +++ b/src/floppymeter.c @@ -154,8 +154,9 @@ if(!(mask & NON_INTERACTIVE)) { fprintf(stderr, - "Warning: all data contained on the floppy disk will be lost. Continue?\n"); + "Warning: all data on the floppy disk will be lost. Continue (y/N)? "); c=getchar(); + fprintf(stderr, "\n"); if(c != 'y' && c != 'Y') exit(1); } debian/patches/help_messages.patch0000644000000000000000000001206411703310375014460 0ustar Description: Fixes related to the help messages This patch contains several fixes related to the usage and help messages: - Do not print "Type --help to get a more complete help" any more when invoking program with --help or -h. - floppymeter, floppycontrol, diskseekd, diskd: usage messages fixed to be consistent with the manpages. - superformat: print the usage short message along with the options' details when invoking with --help or -h (Closes: #88297). - fdlist, fdmount, fdumount, fdmountd: fixed usage printing when invoking with --help or -h. Author: Matteo Cypriani Bug-Debian: http://bugs.debian.org/ Last-Update: 2011-08-11 --- a/src/enh_options.c +++ b/src/enh_options.c @@ -58,8 +58,14 @@ fprintf(stderr,"] "); } fprintf(stderr,"%s\n", userparams); +} + +void print_usage_exit(char *progname, struct enh_options *eo, char *userparams) +{ + print_usage(progname, eo, userparams); fprintf(stderr,"Type %s --help to get a more complete help\n", progname); + exit(1); } static void parse_option_table(struct enh_options *eo) @@ -491,6 +497,7 @@ switch(ch){ case 'h': + print_usage(argv[0], eo, userparams); print_help(eo); exit(0); case '?': --- a/src/setfdprm.c +++ b/src/setfdprm.c @@ -41,8 +41,6 @@ int mask; name = argv[0]; - if (argc < 3) - print_usage(name, optable, userparams); cmd = FDSETPRM; mcmd = 0; while((c=getopt_enh(argc, argv, optable, 0, &mask, userparams)) != EOF){ @@ -53,6 +51,8 @@ printf("unhandled option %d\n", c); exit(1); } + if (argc < 3) + print_usage_exit(name, optable, userparams); argv += optind; argc -= optind; --- a/src/enh_options.h +++ b/src/enh_options.h @@ -53,6 +53,8 @@ void print_help(struct enh_options *eo); +void print_usage_exit(char *progname, struct enh_options *eo, char *userparams); + void print_usage(char *progname, struct enh_options *eo, char *userparams); /* userparams represent the non-option parameters of the command. Printed * after the automatically generated list */ --- a/src/superformat.c +++ b/src/superformat.c @@ -711,21 +711,18 @@ /* sanity checking */ if (sizecode < 0 || sizecode >= MAX_SIZECODE) { fprintf(stderr,"Bad sizecode %d\n", sizecode); - print_usage(progname,optable, ""); - exit(1); + print_usage_exit(progname,optable, ""); } if ( gap < 0 ){ fprintf(stderr,"Fmt gap too small: %d\n", gap); - print_usage(progname,optable, ""); - exit(1); + print_usage_exit(progname,optable, ""); } if (sectors <= 0 || cylinders <= 0 || heads <= 0) { fprintf(stderr,"bad geometry s=%d h=%d t=%d\n", sectors, heads, cylinders); - print_usage(progname,optable, ""); - exit(1); + print_usage_exit(progname,optable, ""); } argc -= optind; @@ -738,8 +735,7 @@ if (! fd[0].name){ fprintf(stderr,"Which drive?\n"); - print_usage(progname,optable, ""); - exit(1); + print_usage_exit(progname,optable, ""); } while(1) { @@ -888,8 +884,7 @@ if (cylinders > fd[0].drvprm.tracks) { fprintf(stderr,"too many cylinder for this drive\n"); - print_usage(progname,optable,""); - exit(1); + print_usage_exit(progname,optable,""); } if (! (mask & SET_ENDTRACK ) || end_cylinder > cylinders) --- a/src/diskd.c +++ b/src/diskd.c @@ -77,7 +77,7 @@ }; while((ch=getopt_enh(argc, argv, optable, - 0, &mask, "drive") ) != EOF ){ + 0, &mask, "") ) != EOF ){ if ( ch== '?' ){ fprintf(stderr,"exiting\n"); exit(1); --- a/src/diskseekd.c +++ b/src/diskseekd.c @@ -77,7 +77,7 @@ interval = 0; while((ch=getopt_enh(argc, argv, optable, - 0, &mask, "drive") ) != EOF ){ + 0, &mask, "") ) != EOF ){ if ( ch== '?' ){ fprintf(stderr,"exiting\n"); exit(1); --- a/src/floppycontrol.c +++ b/src/floppycontrol.c @@ -270,7 +270,7 @@ fd = -2; while((ch=getopt_enh(argc, argv, optable, - 0, &mask, "drive") ) != EOF ){ + 0, &mask, "[drive]") ) != EOF ){ if ( ch== '?' ){ fprintf(stderr,"exiting\n"); exit(1); @@ -289,8 +289,7 @@ fd = open("/dev/fd0", 3 | O_NDELAY); if ( fd < 0 ){ perror("can't open floppy drive"); - print_usage(argv[0],optable,""); - exit(1); + print_usage_exit(argv[0],optable,"[drive]"); } } --- a/src/floppymeter.c +++ b/src/floppymeter.c @@ -131,7 +131,7 @@ struct reg *reg; while((ch=getopt_enh(argc, argv, optable, - 0, &mask, "drive") ) != EOF ){ + 0, &mask, "[drive]") ) != EOF ){ if ( ch== '?' ){ fprintf(stderr,"exiting\n"); exit(1); @@ -148,8 +148,7 @@ fd = open(name, 3 | O_NDELAY); if ( fd < 0 ){ perror("can't open floppy drive"); - print_usage(argv[0],optable,""); - exit(1); + print_usage_exit(argv[0],optable,"[drive]"); } if(!(mask & NON_INTERACTIVE)) { --- a/src/fdmount.c +++ b/src/fdmount.c @@ -1177,6 +1177,10 @@ } } + if (opt_help) { + syntax(); + } + mountflags |= opt_noexec | opt_nosuid | opt_nodev; if (opt_vfat) { @@ -1225,10 +1229,7 @@ } e=0; - if (opt_help) { - syntax(); - } - else if (opt_list) { + if (opt_list) { list_drives(); } else if (opt_daemon) { debian/patches/documentation-info_metadata.patch0000644000000000000000000000104311703310375017276 0ustar Description: Add info dircategory & fix direntry The fdutils.texi file was missing the dircategory declaration, and the direntry declaration was wrong. This patch sets dircategory to "Utilities" and fixes direntry. Author: Matteo Cypriani Last-Update: 2010-05-12 --- a/doc/fdutils.texi +++ b/doc/fdutils.texi @@ -21,9 +21,10 @@ @ifinfo @format -START-INFO-DIR-ENTRY +@dircategory Utilities +@direntry * Fdutils: (fdutils). Fdutils: Linux' floppy utilities -END-INFO-DIR-ENTRY +@end direntry @end format @end ifinfo debian/patches/superformat-verify_later.patch0000644000000000000000000000122011703310375016671 0ustar Description: [superformat] Make --verify_later an option without argument The superformat option --verify_later requires an argument, but the variable verify_later is always used as a switch (0/1). This patch suppresses the required argument. Author: Matteo Cypriani Bug-Debian: http://bugs.debian.org/331488 Last-Update: 2010-05-12 --- a/src/superformat.c +++ b/src/superformat.c @@ -560,7 +560,7 @@ (void *) &dosverify, "verify disk using mbadblocks" }, - { 'V', "verify_later", 1, EO_TYPE_BYTE, 1, 0, + { 'V', "verify_later", 0, EO_TYPE_BYTE, 1, 0, (void *) &verify_later, "verify floppy after all formatting is done" }, debian/patches/documentation-section_media_description.patch0000644000000000000000000000276711703310375021727 0ustar Description: Create a Media description section in manpages The manpages setfdprm(1) and superformat(1) make a reference to an inexistant "Media description" section. That is because there is no generated manpage from mediaprm.texi. This patch adds the missing "Media description" sections, that cross- reference the Texinfo (or HTML, or DVI) documentation. Author: Matteo Cypriani Bug-Debian: http://bugs.debian.org/282014 Last-Update: 2010-05-12 --- a/doc/setfdprm.1 +++ b/doc/setfdprm.1 @@ -118,6 +118,16 @@ Disables format detection messages for the specified auto-configuring floppy device. .PP +.SH Media description +Please see the Media description section in the full fdutils +documentation: +.TQ +- Texinfo documentation (info fdutils) +.TQ +- HTML documentation in /usr/share/doc/fdutils/Fdutils.html +.TQ +- or DVI documentation in /usr/share/doc/fdutils/Fdutils.dvi.gz +.PP .SH Bugs This documentation is grossly incomplete. .SH See Also --- a/doc/superformat.1 +++ b/doc/superformat.1 @@ -295,6 +295,16 @@ sectors. In reality, superformat expects the skews to be expressed in raw bytes. .PP +.SH Media description +Please see the Media description section in the full fdutils +documentation: +.TQ +- Texinfo documentation (info fdutils) +.TQ +- HTML documentation in /usr/share/doc/fdutils/Fdutils.html +.TQ +- or DVI documentation in /usr/share/doc/fdutils/Fdutils.dvi.gz +.PP .SH Examples In all the examples of this section, we assume that drive 0 is a 3 1/2 and drive 1 a 5 1/4. debian/patches/dont_strip_binaries.patch0000644000000000000000000000404111703310375015676 0ustar Description: Don't strip binaries Don't strip binaries as this is handled by dh_strip according to wether nostrip is set in DH_BUILD_OPTIONS or not. Author: Thomas Preud'homme Origin: vendor Last-Update: 2011-08-05 Forwarded: not-needed --- a/src/Makefile.in +++ b/src/Makefile.in @@ -125,17 +125,17 @@ install-bin: all $(top_srcdir)/mkinstalldirs $(bindir) $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) $(srcdir)/MAKEFLOPPIES $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) diskd $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) diskseekd $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) floppycontrol $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) floppymeter $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) getfdprm $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) setfdprm $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) fdrawcmd $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) superformat $(bindir) - $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) xdfcopy $(bindir) - $(INSTALL) -c -s -m $(SPERM) -o $(UID) -g $(GID) fdmount $(bindir) - $(INSTALL) -c -s -m $(SPERM) -o $(UID) -g $(GID) fdmount $(bindir)/fdumount + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) diskd $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) diskseekd $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) floppycontrol $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) floppymeter $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) getfdprm $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) setfdprm $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) fdrawcmd $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) superformat $(bindir) + $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) xdfcopy $(bindir) + $(INSTALL) -c -m $(SPERM) -o $(UID) -g $(GID) fdmount $(bindir) + $(INSTALL) -c -m $(SPERM) -o $(UID) -g $(GID) fdmount $(bindir)/fdumount ( cd $(bindir); \ ln -sf xdfcopy $(bindir)/xdfformat; \ ln -sf fdmount $(bindir)/fdumount; \ debian/patches/MAKEFLOPPIES-chown_separator.patch0000644000000000000000000000142311703310375016711 0ustar Subject: [MAKEFLOPPIES] Fix the chown calls to use ':' instead of '.' Author: Jochen Voss Bug-Debian: http://bugs.debian.org/205367 Last-Update: 2010-05-12 --- a/src/MAKEFLOPPIES +++ b/src/MAKEFLOPPIES @@ -216,7 +216,7 @@ echo "Creating \"$FILE\", ID=$DRIVE, Type=$CMOS ($CN)" if [ -z "$DRYRUN" ]; then mknod "$FILE" b "$MAJOR" "$BASENUMBER" - chown root.floppy "$FILE" + chown root:floppy "$FILE" chmod ${PERMISSION} "$FILE" fi if [ -n "$VERBOSE" -o -n "$DRYRUN" ]; then @@ -240,7 +240,7 @@ fi if [ -z "$DRYRUN" ]; then mknod "${FILE}${NAME}" b "$MAJOR" "$MINOR" - chown root.floppy "${FILE}${NAME}" + chown root:floppy "${FILE}${NAME}" chmod ${PERMISSION} "${FILE}${NAME}" fi if [ -n "$VERBOSE" -o -n "$DRYRUN" ]; then debian/patches/MAKEFLOPPIES-xsiisms.patch0000644000000000000000000000300111703310375015204 0ustar Subject: [MAKEFLOPPIES] Remove XSIisms and replace use of /bin/bash with /bin/sh Author: David Weinehall Bug-Debian: http://bugs.debian.org/254933 Last-Update: 2010-05-12 --- a/src/MAKEFLOPPIES +++ b/src/MAKEFLOPPIES @@ -47,7 +47,7 @@ { if [ $# -lt 1 ]; then return fi - if [ "$1" -lt 1 -o "$1" -ge $# ]; then + if [ "$1" -lt 1 ] || [ "$1" -ge $# ]; then return fi shift $1 @@ -101,7 +101,7 @@ # main() PERMISSION=666 -while [ $# -ge 1 -o -n "${REMAINDER}" ]; do +while [ $# -ge 1 ] || [ -n "${REMAINDER}" ]; do if [ -n "$REMAINDER" ]; then ## Continue processing options stuck together ARG=$REMAINDER @@ -203,13 +203,13 @@ fi FORMATS=`getword "$CMOS" $CMOSFORMATS` - if [ -n "$VERBOSE" -o -n "$DRYRUN" ]; then + if [ -n "$VERBOSE" ] || [ -n "$DRYRUN" ]; then echo rm -f "$FILE"* fi if [ -z "$DRYRUN" ]; then rm -f "$FILE"* fi - if [ -z "$CMOS" -o -z "$CN" ]; then + if [ -z "$CMOS" ] || [ -z "$CN" ]; then echo "Skipping invalid drive \"$FILE\"" >&2 continue fi @@ -219,7 +219,7 @@ chown root:floppy "$FILE" chmod ${PERMISSION} "$FILE" fi - if [ -n "$VERBOSE" -o -n "$DRYRUN" ]; then + if [ -n "$VERBOSE" ] || [ -n "$DRYRUN" ]; then echo mknod "$FILE" b "$MAJOR" "$BASENUMBER" fi @@ -243,7 +243,7 @@ chown root:floppy "${FILE}${NAME}" chmod ${PERMISSION} "${FILE}${NAME}" fi - if [ -n "$VERBOSE" -o -n "$DRYRUN" ]; then + if [ -n "$VERBOSE" ] || [ -n "$DRYRUN" ]; then echo mknod "${FILE}${NAME}" b "$MAJOR" "$MINOR" fi fi debian/po/0000755000000000000000000000000011703310375007604 5ustar debian/po/cs.po0000644000000000000000000000365411703310375010561 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: fdutils 5.4\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-24 21:27+0100\n" "Last-Translator: Martin Sin \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Má být fdmount nainstalován s 'setuid root'" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Aby mohli běžní uživatelé připojovat diskety pomocí fdmountu, je nutné " "nastavit fdmountu id uživatele root (tzv. setuid), takže bude běžet s právy " "superuživatele." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Takové nastavení může být bezpečnostním problémem, zejména pokud se v kódu " "fdmount objeví nějaké chyby." #~ msgid "Do you want to make fdmount set-user-id root?" #~ msgstr "Přejete si vytvořit fdmount s nastaveným id uživatele root?" debian/po/it.po0000644000000000000000000000312011703310375010554 0ustar # Italian (it) translation of debconf templates for fdutils # Copyright (C) 2005 Free Software Foundation, Inc. # This file is distributed under the same license as the fdutils package. # Luca Monducci , 2005-2008. # msgid "" msgstr "" "Project-Id-Version: fdutils 5.5-20060227 debconf templates\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-19 09:25+0100\n" "Last-Translator: Luca Monducci \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Installare fdmount con \"setuid root\"?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Per permettere ai normali utenti di montare dischetti con fdmount, è " "possibile installare il programma fdmount con il bit set-user-ID attivo in " "modo da essere eseguito con i permessi di superuser." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Questa impostazione potrebbe avere ripercussioni sulla sicurezza se nel " "codice di fdmount sono presenti delle vulnerabilità." debian/po/ca.po0000644000000000000000000000323311703310375010530 0ustar # # Catalan translations for fdutils package. # Copyright (C) 2008 Anibal Monsalve Salazar. # This file is distributed under the same license as the fdutils package. # # Jordà Polo , 2007, 2008. # msgid "" msgstr "" "Project-Id-Version: 5.5-20060227-1\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-22 20:11+0100\n" "Last-Translator: Jordà Polo \n" "Language-Team: Catalan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Voleu que fdmount s'instal·li amb «setuid root»?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Per permetre que els usuaris regulars puguin muntar disquets utilitzant " "fdmount, aquest s'ha d'instal·lar amb el bit «set-user-ID» activat, i per " "tant executar-se amb permisos de superusuari." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Aquesta opció pot tenir implicacions pel que fa a la seguretat en cas que es " "trobin vulnerabilitats al codi de l'fdmount." #~ msgid "Do you want to make fdmount set-user-id root?" #~ msgstr "Voleu fer que fdmount sigui «set-user-id root»?" debian/po/fr.po0000644000000000000000000000400111703310375010546 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: fdutils_5.4-20040228-4\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2005-05-20 09:14+0100\n" "Last-Translator: Steve Petruzzello \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-SourceCharset: UTF-8\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Faut-il exécuter fdmount avec les privilèges du superutilisateur ?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Pour que les utilisateurs non privilégiés puissent monter une disquette avec " "fdmount, ce programme doit s'exécuter avec les privilèges du " "superutilisateur (« setuid root »)." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Cette configuration peut affaiblir la sécurité du système dans le cas d'une " "vulnérabilité du code de fdmount." #~ msgid "Do you want to make fdmount set-user-id root?" #~ msgstr "fdmout doit-il s'exécuter avec les privilèges du superutilisateur ?" debian/po/sv.po0000644000000000000000000000337711703310375010606 0ustar # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Developers do not need to manually edit POT or PO files. # , fuzzy # # msgid "" msgstr "" "Project-Id-Version: fdutils 5.5-20050303-1\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-07-21 14:54+0100\n" "Last-Translator: Martin Bagge \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Vill du installera fdmount med 'setuid root'?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Fr att vanliga anvndare ska kunna montera en floppy diskett med fdmount " "mste fdmount sttas upp som suid root." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Instlningen kan innebra en skerhetsrisk om felaktigheter i fdmount " "uppdagas och utnyttjas." #~ msgid "Do you want to make fdmount set-user-id root?" #~ msgstr "Vill du gra fdmount suid root?" debian/po/gl.po0000644000000000000000000000305611703310375010552 0ustar # Galician translation of fdutils's debconf templates # This file is distributed under the same license as the fdutils package. # Jacobo Tarrio , 2007. # msgid "" msgstr "" "Project-Id-Version: fdutils\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-09 23:44+0000\n" "Last-Translator: Jacobo Tarrio \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "¿Quere instalar fdmount con \"setuid root\"?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Para permitirlle aos usuarios normais montar un disquete, pódese instalar o " "programa fdmount co bit de set-user-ID establecido para que funcione cos " "permisos do superusuario." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Esta configuración pode causar problemas se aparecen vulnerabilidades no " "código de fdmount." #~ msgid "Do you want to make fdmount set-user-id root?" #~ msgstr "¿Quere darlle autoridade de administrador a fdmount?" debian/po/da.po0000644000000000000000000000275011703310375010534 0ustar # Danish translation fdutils. # Copyright (C) 2011 fdutils & nedenstående oversættere. # This file is distributed under the same license as the fdutils package. # Joe Hansen , 2011. # msgid "" msgstr "" "Project-Id-Version: fdutils\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2011-04-17 17:30+01:00\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Skal fdmount installeres som »setuid root«?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "For at normale brugere kan montere et diskettedrev kan programmet fdmount " "installeres med bitsættet set-user-ID, så det vil køre med rettighederne " "for superbrugeren." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "En sådan indstilling kan have sikkerhedsmæssige konsekvenser, hvis der er " "sårbarheder i fdmounts kode." debian/po/ru.po0000644000000000000000000000356211703310375010600 0ustar # translation of ru.po to Russian # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Yuri Kozlov , 2008. msgid "" msgstr "" "Project-Id-Version: 5.5-20060227-1.2\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-22 21:20+0300\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Установить fdmount как 'setuid root'?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Чтобы разрешить обычным пользователям монтировать дискеты, программа fdmount " "может быть установлена с битом set-user-ID, для того чтобы она выполнялась с " "правами суперпользователя." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Такая установка может привести к проблемам с безопасностью в случае наличия " "уязвимостей в коде fdmount." debian/po/es.po0000644000000000000000000000443111703310375010555 0ustar # fdutils po-debconf translation to Spanish # Copyright (C) 2005 Software in the Public Interest # This file is distributed under the same license as the fdutils package. # # Changes: # - Initial translation # César Gómez Martín # # Traductores, si no conoce el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Equipo de traducción al español, por favor, lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" msgstr "" "Project-Id-Version: fdutils\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2005-08-12 17:33+0100\n" "Last-Translator: César Gómez Martín \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "¿Debería instalarse fdmount como 'setuid root'?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Para que los usuarios normales puedan montar un disco flexible el programa " "fdmount puede instalarse con el bit set-user-ID activado, de forma que se " "ejecute con permisos de superusuario." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Esta opción puede tener consecuencias indeseadas de seguridad en caso de " "vulnerabilidades en el código de fdmount." debian/po/pt_BR.po0000644000000000000000000000310111703310375011145 0ustar # Debconf translations for fdutils. # Copyright (C) 2010 THE fdutils'S COPYRIGHT HOLDER # This file is distributed under the same license as the fdutils package. # Adriano Rafael Gomes , 2010. # msgid "" msgstr "" "pt_BR utf-8\n" "Project-Id-Version: fdutils 5.5-20060227-4\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2011-01-16 18:21-0200\n" "Last-Translator: Adriano Rafael Gomes \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "O fdmount deve ser instalado com 'setuid root'?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Para habilitar usuários normais a montar disquetes, o programa fdmount pode " "ser instalado com o bit \"set-user-ID\" ligado, assim ele será executado com " "as permissões do superusuário." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Tal configuração pode ter implicações de segurança no caso de " "vulnerabilidades no código do fdmount." debian/po/eu.po0000644000000000000000000000317011703310375010556 0ustar # translation of fdutils-eu.po to Euskara # Aitor Ibanez ,2007. # Aitor Ibanez ,2008. # Piarres Beobide , 2007. # Piarres Beobide , 2008. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. msgid "" msgstr "" "Project-Id-Version: fdutils-eu\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-22 00:22+0100\n" "Last-Translator: Aitor Ibanez \n" "Language-Team: Euskara \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "fdmount 'setuid root' bezala instalatu?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Erabiltzaile arruntek flopy diskoa muntatu ahal izateko, fdmount programan " "set-user-ID bita aktibatuta duela instalatu daiteke, supererabiltzailearen " "baimenekin exekutatua izan dadin." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Konfigurazio honek segurtasunean arazoak sor ditzake, fdmount kodean " "erasanerrazak diren zatiak egon daitezkelako." debian/po/fi.po0000644000000000000000000000253211703310375010544 0ustar msgid "" msgstr "" "Project-Id-Version: fdutils\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-11 21:54+0200\n" "Last-Translator: Esko Arajärvi \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Finnish\n" "X-Poedit-Country: Finland\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Tulisiko fdmount asentaa asetuksella ”setuid root”?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Jotta tavalliset käyttäjät voisivat liittää levykkeitä järjestelmään, " "ohjelma fdmount voidaan asentaa bitti set-user-ID asetettuna, jolloin se " "ajetaan pääkäyttäjäoikeuksilla." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Tämä asetus voi aiheuttaa turvariskejä, jos fdmountin koodissa on " "haavoittuvuuksia." debian/po/ja.po0000644000000000000000000000370311703310375010541 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # # msgid "" msgstr "" "Project-Id-Version: fdutils 5.5-20060227-1.2\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-21 07:46+0900\n" "Last-Translator: Hideki Yamane (Debian-JP) \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "fdmount を root に setuid してインストールしますか?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "一般ユーザがフロッピーディスクをマウントできるようにするためには、fdmount プ" "ログラムは set-user-ID ビットの設定を加えてインストールされています。そのた" "め、fdmount 管理者権限で動作します。" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "この設定は、fdmount のコードに脆弱性がある場合にセキュリティ問題が起こる可能" "性があります。" debian/po/de.po0000644000000000000000000000334311703310375010537 0ustar # Translation of fdutils debconf templates to German # Copyright (C) Mathias Klein , 2006. # Copyright (C) Helge Kreutzmann , 2008. # This file is distributed under the same license as the fdutils package. # msgid "" msgstr "" "Project-Id-Version: fdutils 5.5-20060227-1.2\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-10 22:19+0100\n" "Last-Translator: Helge Kreutzmann \n" "Language-Team: de \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Soll Fdmount setuid root installiert werden?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Um es normalen Benutzern zu erlauben, Disketten einzuhngen, kann das " "Programm Fdmount mit gesetztem set-user-ID-Bit installiert werden, so dass " "es mit den Rechten des Superusers (root) luft." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Eine solche Einstellung knnte Auswirkungen auf die Sicherheit haben, falls " "im Code von Fdmount Verwundbarkeiten gefunden werden." #~ msgid "Do you want to make fdmount set-user-id root?" #~ msgstr "Mchten Sie fr fdmount das SUID-Recht (set-user-id root) vergeben?" debian/po/POTFILES.in0000644000000000000000000000004411703310375011357 0ustar [type: gettext/rfc822deb] templates debian/po/nl.po0000644000000000000000000000427111703310375010561 0ustar # translation of fdutils_5.5-20060227-2.1_nl.po to Dutch # # This file is distributed under the same license as the fdutils package. # Please see debian/copyright. # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans# # Developers do not need to manually edit POT or PO files. # # Paul Gevers , 2008. msgid "" msgstr "" "Project-Id-Version: fdutils_5.5-20060227-2.1_nl\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-10-06 21:32-0600\n" "Last-Translator: Paul Gevers \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Wilt u dat fdmount wordt geïnstalleerd met setuid-toegangsrechten?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Om het voor gewone gebruikers mogelijk te maken om een diskette aan te " "koppelen, kunt u ervoor kiezen om de toegangsrechten van fdmount via set-" "user-id voor root in te stellen. Zo kan fdmount gedraaid worden met de " "rechten van de systeembeheerder." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Het gebruik van deze constructie kan een veiligheidsrisico zijn indien er " "kwetsbaarheden in de code van fdmount blijken te zitten." debian/po/vi.po0000644000000000000000000000352411703310375010566 0ustar # Vietnamese Translation for fdutils. # Copyright © 2008 Free Software Foundation, Inc. # Clytie Siddall , 2005-2008. # msgid "" msgstr "" "Project-Id-Version: fdutils 5.5-20060227-1.2\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-10 18:50+1030\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.7b1\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Có nên cài đặt fdmount « setuid root » không?" # msgid "" # In order to enable ordinary users to mount a floppy disk using fdmount, # fdmount needs to be set up as set-user-id root. Please note that this is # usually considered to be a security hazard. #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "Để cho phép những người dùng bình thường gắn kết đĩa mềm, bạn có thể cài đặt " "chương trình fdmount với bit đặt mã số người dùng (set-user-ID) đã bật, để " "chương trình chạy với quyền của siêu người dùng." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Thiết lập như vậy có thể rủi ro bảo mật trong trường hợp mã nguồn fdmount dễ " "bị tấn công." debian/po/pt.po0000644000000000000000000000311111703310375010563 0ustar # translation of fdutils debconf to Portuguese # Portuguese translation for fdutils # This file is distributed under the same license as the fdutils package. # # André Costa , 2006. # Américo Monteiro , 2008. msgid "" msgstr "" "Project-Id-Version: fdutils \n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: 2008-01-25 19:23+0000\n" "Last-Translator: Américo Monteiro \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "Deverá o fdmount ser instalado em modo 'setuid root'?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" "De modo a permitir a utilizadores normais montar uma disquete, o programa " "fdmount pode ser instalado com o bit set-user-ID activo, o que o fará correr " "com as permissões do super utilizador." #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" "Tal opção pode ter implicações de segurança no caso de vulnerabilidades no " "código do fdmount." debian/po/templates.pot0000644000000000000000000000217411703310375012332 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: fdutils@packages.debian.org\n" "POT-Creation-Date: 2008-01-09 21:08+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Should fdmount be installed 'setuid root'?" msgstr "" #. Type: boolean #. Description #: ../templates:2001 msgid "" "In order to enable ordinary users to mount a floppy disk, the fdmount " "program can be installed with the set-user-ID bit set, so that it will run " "with the permissions of the superuser." msgstr "" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Such a setting may have security implications in the case of vulnerabilities " "in fdmount's code." msgstr "" debian/postinst0000644000000000000000000000242211703310375010774 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule #DEBHELPER# case "$1" in configure) if [ -e /etc/fdmount.conf ]; then TMPFILE="$(mktemp -q /tmp/fdmount.conf.tmp.XXXXXX)" db_get fdutils/fdmount_setuid if [ "$RET" = true ] \ && grep -q '^is_suid=n.*' /etc/fdmount.conf; then sed -e 's/^is_suid=.*$/is_suid=yes/' >"$TMPFILE" chmod 644 "$TMPFILE" mv "$TMPFILE" /etc/fdmount.conf dpkg-statoverride --update --add root floppy 4750 /usr/bin/fdmount elif [ "$RET" = false ] \ && grep -q '^is_suid=y.*' /etc/fdmount.conf; then sed -e 's/^is_suid=.*$/is_suid=no/' >"$TMPFILE" chmod 644 "$TMPFILE" mv "$TMPFILE" /etc/fdmount.conf chmod u-s /usr/bin/fdmount dpkg-statoverride --remove /usr/bin/fdmount fi if [ -e "$TMPFILE" ]; then rm -f "$TMPFILE" fi fi if [ -e "/etc/fdprm" ]; then echo "Fdutils-5.0 introduced two new configuration files: /etc/mediaprm and" >&2 echo "/etc/driveprm. They replace the old /etc/fdprm." >&2 echo "Renaming old file /etc/fdprm to /etc/fdprm.obsolete ..." >&2 mv -f /etc/fdprm /etc/fdprm.obsolete echo >&2 fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 ;; esac debian/templates0000644000000000000000000000132411703310375011107 0ustar # These templates have been reviewed by the debian-l10n-english # team # # If modifications/additions/rewording are needed, please ask # debian-l10n-english@lists.debian.org for advice. # # Even minor modifications require translation updates and such # changes should be coordinated with translators and reviewers. Template: fdutils/fdmount_setuid Type: boolean Default: false _Description: Should fdmount be installed 'setuid root'? In order to enable ordinary users to mount a floppy disk, the fdmount program can be installed with the set-user-ID bit set, so that it will run with the permissions of the superuser. . Such a setting may have security implications in the case of vulnerabilities in fdmount's code. debian/source/0000755000000000000000000000000011703310375010466 5ustar debian/source/format0000644000000000000000000000001411703310375011674 0ustar 3.0 (quilt) debian/clean0000644000000000000000000000027611703310375010200 0ustar doc/texi-linearize doc/Fdutils.texi doc/Fdutils.html src/floppymeter src/convertfdprm Makefile src/Makefile doc/Makefile configure config.log config.cache config.status config.h config.h.in debian/install0000644000000000000000000000006611703310375010561 0ustar debian/fdmount.conf etc debian/fdutilsconfig usr/sbin debian/config0000644000000000000000000000065511703310375010364 0ustar #! /bin/sh set -e . /usr/share/debconf/confmodule if [ -e /etc/fdmount.conf ]; then if grep -q '^is_suid=y.*$' /etc/fdmount.conf; then db_set fdutils/fdmount_setuid true else db_set fdutils/fdmount_setuid false fi fi if [ "$1" = reconfigure ] || [ ! -e /etc/fdmount.conf ] \ || dpkg --compare-versions "$2" lt 5.2.0.1998-07-01-3; then db_input medium fdutils/fdmount_setuid || true db_go || true fi debian/compat0000644000000000000000000000000211703310375010364 0ustar 8 debian/watch0000644000000000000000000000020511703310375010214 0ustar version=3 opts=dversionmangle=s/-(\d*)// \ ftp://sunsite.unc.edu/pub/Linux/utils/disk-management/fdutils-(.*).tar.gz debian uupdate debian/control0000644000000000000000000000313711703310375010575 0ustar Source: fdutils Section: utils Priority: optional Maintainer: Matteo Cypriani Standards-Version: 3.9.2.0 Build-Depends: debhelper (>= 8.0.0~), autoconf, automake, dh-autoreconf, texi2html, flex, texlive, texinfo, po-debconf Homepage: http://fdutils.linux.lu/ Vcs-Git: git://git.debian.org/git/collab-maint/fdutils.git Vcs-Browser: http://git.debian.org/?p=collab-maint/fdutils.git Package: fdutils Architecture: alpha amd64 hppa ia64 i386 m68k powerpc powerpcspe ppc64 sparc sparc64 Depends: ${shlibs:Depends}, ${misc:Depends}, dpkg (>= 1.15.4) | install-info, debianutils (>= 1.7) Recommends: mtools (>= 3.8-1) Replaces: miscutils, manpages (<< 1.11-3) Description: Linux floppy utilities This package contains utilities for formatting extra capacity disks, automatic floppy disk mounting and unmounting, etc. . The package includes the following items: . - superformat: formats high capacity disks (up to 1992k for high density disks or up to 3984k for extra density disks); - fdmount: automatically mounts/unmounts disks when they are inserted/removed; - xdfcopy: formats, reads and writes OS/2's XDF disks; - MAKEFLOPPIES: creates the floppy devices in /dev; - getfdprm: prints the current disk geometry (number of sectors, track and heads etc.); - setfdprm: sets the current disk geometry; - fdrawcmd: sends raw commands to the floppy driver; - floppycontrol: configures the floppy driver; - general documentation about the floppy driver. . Note that these utilities do not work for USB floppy drives, because these do not allow direct access to the floppy controller. debian/docs0000644000000000000000000000007311703310375010041 0ustar CREDITS doc/README doc/*.html doc/*.dvi doc/floppy_formats debian/copyright0000644000000000000000000000337411703310375011130 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=166 Upstream-Name: Linux floppy utilities Upstream-Contact: Alain Knaff Source: http://www.tux.org/pub/knaff/fdutils/fdutils-5.5.tar.gz Files: * Copyright: 1993-2006 Alain Knaff License: GPL-2+ Files: debian/* Copyright: 1996, 1997 Mark W. Eichin 1997-1999 Anthony Fok 1999 Vaidhyanathan G Mayilrangam 2001 Anthony Towns 2001 LaMont Jones 2001 Bas Zoetekouw 2002 Steve Kowalik 2002 Matt Zimmerman 2002-2005 Jochen Voss 2005, 2006 Anibal Monsalve Salazar 2007, 2008 Christian Perrier 2008, 2010 Anibal Monsalve Salazar 2010-2011 Matteo Cypriani License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file '/usr/share/common-licenses/GPL-2'. debian/fdutils.doc-base0000644000000000000000000000110211703310375012231 0ustar Document: fdutils Title: Fdutils: Linux floppy utilities Author: Alain Knaff Abstract: Fdutils is a collection of utilities for configuring and using the Linux floppy driver, for formatting extra capacity disks (up to 1992K on a high density disk), for sending raw commands to the floppy controller, for automatic floppy disk mounting and unmounting, etc. This manual describes these utilities, and also the floppy driver itself. Section: System/Hardware Format: HTML Index: /usr/share/doc/fdutils/Fdutils.html Files: /usr/share/doc/fdutils/Fdutils.html debian/fdutilsconfig.80000644000000000000000000000252711703310375012125 0ustar .\" dummy line .TH FDUTILSCONFIG 8 "24 January 1999" .UC 4 .SH NAME fdutilsconfig \- configure the suid bit of fdmount .SH SYNOPSIS .B fdutilsconfig .br .SH DESCRIPTION The .B fdutilsconfig script provides an interactive way to configure the suid bit of the .BR fdmount "(1)" binary. It asks you some questions, give you a hint if needed, and enters your choice to .I /etc/fdmount.conf file. .PP When upgrading the Debian fdutils package, the suid bit information stored in .I /etc/fdmount.conf is used to tell the new fdmount binary to keep your old suid bit settings. .PP The script makes use of the .BR suidmanager Debian package, if it is installed. If the script cannot find it, it manipulates the suid bit directly via `chmod u+s' command. .SH FILES .B fdutilsconfig reads and writes the configuration from /etc/fdmount.conf. This file is usually created when the fdutils package is installed for the first time. Please don't edit /etc/fdmount.conf manually! Use .B fdutilsconfig instead. .SH NOTE This script was written exclusively for the Debian GNU/Linux distribution. It is not a part of the upstream fdutils sources. .SH AUTHORS .B fdutilsconfig was adapted by Anthony Fok from the .B gnuplotconfig script written by Tibor Simko . .SH SEE ALSO .BR fdmount "(1), " suidregister "(8), " suidunregister "(8)" debian/fdutils.doc-base.faq0000644000000000000000000000040611703310375013005 0ustar Document: fdutils-faq Title: Fdutils FAQ Author: Alain Knaff Abstract: Frequently asked question about the Linux floppy driver. Section: System/Hardware Format: HTML Index: /usr/share/doc/fdutils/FAQ.html Files: /usr/share/doc/fdutils/FAQ.html debian/dirs0000644000000000000000000000001511703310375010046 0ustar usr/sbin etc debian/changelog0000644000000000000000000006102711703310375011046 0ustar fdutils (5.5-20060227-6) unstable; urgency=low [ Matteo Cypriani ] * Switch to debhelper 8.0.0~ * Rebuild architectures' list (exclude arm*, mips* and some others). * Add Last-Update field to all patches. * Fix spelling-error-in-manpage "allows one to". * Add help_messages.patch, that contains several fixes related to the usage and help messages: - Do not print "Type --help to get a more complete help" any more when invoking program with --help or -h. - floppymeter, floppycontrol, diskseekd, diskd: usage messages fixed to be consistent with the manpages. - superformat: print the usage short message along with the options' details when invoking with --help or -h (Closes: #88297). - fdlist, fdmount, fdumount, fdmountd: fixed usage printing when invoking with --help or -h. [ Thomas Preud'homme ] * Use dh-autoreconf to handle the autoreconf. * Comment out DH_VERBOSE and DH_OPTIONS. * Add dont_strip_binaries.patch: don't strip files with nostrip set in DEB_BUILD_OPTION (Closes: #436826). -- Matteo Cypriani Wed, 11 Jan 2012 14:37:17 +0100 fdutils (5.5-20060227-5) unstable; urgency=low * Adoption (Closes: #565466). * Bump Standards-Version to 3.9.2.0. * Switch to 3.0 (quilt) source format (follow DEP3). * Switch to debhelper 7.0.50~ - Update rules to use dh. - Add DESTDIR support in makefiles. - Add debian/fdutils.manpages. - Add debian/clean. - Add debian/install. - Add debian/fdutils.info. * Convert debian/copyright to DEP5 format. * Add automake to Build-Depends. * Update Homepage in debian/control. * Doc spell-check (Closes: #395428, #525257). * Change all occurrences to the old file /etc/fdprm to /etc/mediaprm (Closes: #519224). * Fix architecture list (fdutils is Linux specific). * Fix lintian error info-document-missing-dir-section. * Fix lintian warning manpage-has-errors-from-man. * Fix lintian minor warning hyphen-used-as-minus-sign. * Delete useless debian/fdutils.lintian-overrides. * Update debian/dirs. * [fdmount] Update Linux 2.5.999 patch (becomes Linux 2.6 patch). * [superformat] Fix --verify_later (Closes: #331488). * [superformat] Document --print-drive-deviation (Closes: #331491). * [superformat] Document better --print-drive-deviation (Closes: #331489). * [MAKEFLOPPIES] Fix usage printing (Closes: #275877). * Media description in manpages (Closes: #282014). * Add Brazilian Portuguese translation for debconf (Closes: #610406). * Add Danish translation for debconf (Closes: #623083). -- Matteo Cypriani Thu, 05 May 2011 16:09:37 +0200 fdutils (5.5-20060227-4) unstable; urgency=low * QA upload. * Maintainer set to Debian QA Group * Fix build-depends-on-obsolete-package tetex-bin replaced by texlive as build-dependency Closes: 562365 * Fix out-of-date-standards-version * DH level compatibility is 7 * Fix dh-clean-k-is-deprecated * Fix outdated-autotools-helper-file * Fix maintainer-script-ignores-errors * Fix copyright-refers-to-symlink-license * Fix missing-dependency-on-install-info * Fix install-info-used-in-maintainer-script -- Anibal Monsalve Salazar Sat, 16 Jan 2010 10:35:39 +1100 fdutils (5.5-20060227-3) unstable; urgency=low [ Anibal Monsalve Salazar ] * Standards-Version is 3.8.0 [ Christian Perrier ] * Fix pending l10n bugs. Debconf translations: - Swedish. Closes: #491764 - Dutch. Closes: #501625 -- Anibal Monsalve Salazar Thu, 09 Oct 2008 20:12:56 +1100 fdutils (5.5-20060227-2) unstable; urgency=low [ Anibal Monsalve Salazar ] * ACKed NMU. Closes: #402236, #408214, #412305 * Bumped Standards-Version to 3.7.3 * Fixed the following lintian messages: - fdutils source: debian-rules-ignores-make-clean-error line 39 - fdutils source: out-of-date-standards-version 3.7.2 (current is 3.7.3) [ Christian Perrier ] * This upload fixes pending l10n issues * Debconf templates and debian/control reviewed by the debian-l10n- english team as part of the Smith review project. Closes: #459225 * [Debconf translation updates] - Galician. Closes: #459987 - Vietnamese. Closes: #460035 - Finnish. Closes: #460284 - German. Closes: #460941 - Italian. Closes: #461561 - Japanese. Closes: #461936 - Basque. Closes: #462022 - Russian. Closes: #462132 - Catalan. Closes: #462170 - Czech. Closes: #462438 - Portuguese. Closes: #462571 - French. Closes: #463103 - Spanish. Closes: #473576 * Fix debian/watch file to report upstream version. Closes: #449648 * [Lintian] Reformat the earlier entries of debian/changelog * [Lintian] Move doc-base section to System/Hardware * [Lintian] Use debian/compat to set debhelper compatibility -- Anibal Monsalve Salazar Sat, 05 Apr 2008 19:10:53 +1000 fdutils (5.5-20060227-1.1) unstable; urgency=low * Non-maintainer upload to fix pending l10n issues. * Debian translations: - Spanish. Closes: #402236 - Galician. Closes: #408214 - Catalan. Closes: #412305 -- Christian Perrier Mon, 26 Feb 2007 07:33:25 +0100 fdutils (5.5-20060227-1) unstable; urgency=low * Applied upstream's patch fdutils-5.5-20060227.diff.gz to create fdutils_5.5-20060227.orig.tar.gz. * Set Standards-Version to 3.7.2. * New German debconf translation, closes: #355553. Patch by Mathias Klein . * New Portuguese debconf translation, closes: #362985. Patch by Miguel Figueiredo . * New Dutch debconf translation, closes: #363044. Patch by Kurt De Bree . * Fixed package-uses-deprecated-debhelper-compat-version. -- Anibal Monsalve Salazar Thu, 22 Jun 2006 11:10:44 +1000 fdutils (5.5-20050303-2) unstable; urgency=low * Fixed "fdutils: postinst doesn't remove temporary file", closes: #317039. * Added Japanese debconf translation, closes: #312356. Patch by Hideki Yamane . * Added Italian debconf translation, closes: #325620. Patch by Luca Monducci . * Added Swedish debconf translation, closes: #331472. Patch by Daniel Nylander . * Set Section to utils and Standards-Version to 3.6.2 in debian/control and DH_COMPAT to 4 in debian/rules. * Updated FSF postal address in debian/copyright. -- Anibal Monsalve Salazar Sat, 08 Oct 2005 20:49:10 +1000 fdutils (5.5-20050303-1) unstable; urgency=low * New upstream release. * Added Vietnamese debconf translation, closes: #311647. Patch by Clytie Siddall . * Added French debconf translation, closes: #311693. Patch by Steve . * Added Czech debconf translation, closes: #311097. Patch by Martin Sín . -- Anibal Monsalve Salazar Sat, 04 Jun 2005 18:15:35 +1000 fdutils (5.4-20040228-4) unstable; urgency=low * Fixed "Mistake in man page of fdrawcmd", closes: #270432. Patch by Loic Le Guyader . * Fixed "man page typos", closes: #302148. Patch by A Costa . * Fixed "improve initial message with (y/N)", closes: #306097, #298046. Patch by Jari Aalto . * Fixed "Should use debconf to ask questions", closes: #230684. Patch by Colin Watson . -- Anibal Monsalve Salazar Tue, 17 May 2005 20:18:31 +1000 fdutils (5.4-20040228-3) unstable; urgency=low * New maintainer, closes: #298758. -- Anibal Monsalve Salazar Sat, 09 Apr 2005 09:53:02 +1000 fdutils (5.4-20040228-2) unstable; urgency=low * orphan the package: since my laptop died I do no longer own a machine with a floppy drive -- Jochen Voss Wed, 9 Mar 2005 18:21:10 +0000 fdutils (5.4-20040228-1) unstable; urgency=low * new upstream (only incorporates one of our patches) * update config.sub and config.guess * fix the manual section in the MAKEFLOPPIES manual page * remove XSIisms and replace use of /bin/bash with /bin/sh. Thanks, David Weinehall (closes: #254933) -- Jochen Voss Sat, 19 Jun 2004 00:11:51 +0100 fdutils (5.4-20030718-3) unstable; urgency=low * mention in the documentation that USB floppies are not supported (closes: #79362) * reencode the changelog in UTF-8 * update Standards-Version to 3.6.0 -- Jochen Voss Wed, 25 Feb 2004 20:32:52 +0000 fdutils (5.4-20030718-2) unstable; urgency=low * Fix the kernel-headers breakage by including a copy of all the necessary stuff into the package. * Fix the media parameters for the CBM1581 format. Thanks, Peter Karlsson (Closes: #212964) -- Jochen Voss Tue, 2 Dec 2003 10:27:29 +0000 fdutils (5.4-20030718-1) unstable; urgency=low * new upstream release (only minor fixes) * change the relation to the mtools package into a "Recommends" (Closes: #200180) * src/MAKEFLOPPIES, debian/rules: Fix the chown calls to use ':' instead of '.' (Closes: #205367) * Convert all the annoying stuff at the top of the manual pages into less annoying stuff near the end. * Explain in the manual how to switch off the "--verify_later" option. * Fix some compiler warnings. * Upgrade to policy version 3.6.0: implement the "noopt" and "nostrip" keywords for DEB_BUILD_OPTIONS. -- Jochen Voss Wed, 20 Aug 2003 14:26:01 +0200 fdutils (5.4-20030528-1) unstable; urgency=low * New upstream release: - Makefile fixes - More appropirate skew for 3 1/2 XDF disks (20% performance increase) - Fixes to the -3 format * Upgrade to policy version 3.5.4 (no changes necessary) * Fix a mistake in the debian/rules clean target * Extend the long package description -- Jochen Voss Fri, 6 Jun 2003 17:22:17 +0200 fdutils (5.4-20021102-1) unstable; urgency=low * New upstream release. This incorporates many of our patches :-) -- Jochen Voss Tue, 5 Nov 2002 18:28:00 +0100 fdutils (5.4-20020222-3) unstable; urgency=low * Fixed the package description (Closes: #149216) * Work around bug #148587 by always enabling --verify_later for now. This should be reverted, once the problem is fixed upstream. (Closes: #148587) -- Jochen Voss Sun, 30 Jun 2002 12:42:26 +0200 fdutils (5.4-20020222-2) unstable; urgency=low * superformat: use /dev/floppy/%d instead of /dev/fd%d on devfs-systems. I cannot test this myself, so please check and report any remaining problems. (Closes: #110225) -- Jochen Voss Tue, 4 Jun 2002 19:34:09 +0200 fdutils (5.4-20020222-1) unstable; urgency=low * New upstream release (bug fixes) * Add support for DEB_BUILD_OPTIONS to debian/rules * Incorporate patch from John. R. Daily (Closes: #124365) -- Jochen Voss Tue, 21 May 2002 15:43:17 +0200 fdutils (5.4-1) unstable; urgency=low * New upstream release (Closes: #79618). It comes late, but here it is. -- Jochen Voss Tue, 21 May 2002 14:13:54 +0200 fdutils (5.3-7) unstable; urgency=low * The fixing-some-typos-release: * Fix the doc-base control file (Closes: #137537) * Fix the fdutilsconfig help message (Closes: #134749) * Fix the error message for formating write protected disks (backported from fdutils-5.4) (Closes: #133957) * Remove spurious "diskseek" from the diskseekd manual page (Closes: #99522) -- Jochen Voss Mon, 11 Mar 2002 19:32:01 +0100 fdutils (5.3-6) unstable; urgency=high * Urgency is high, because some noninteractive installs did not work properly with previous versions. * Ignore case of $DEBIAN_FRONTEND (Closes: #134380) * Backport fixes for MAKEFLOPPIES from the new upstream version (Closes: #129492) * Improved README file. Mention fdutils from the util-linux package, to help people who suffer from the superformat problems. -- Jochen Voss Mon, 18 Feb 2002 20:35:26 +0100 fdutils (5.3-5) unstable; urgency=low * This upload should really move into woody eventually, because revision 5.3-3.6 suffers from the problems described in bugs #130805 and #130473. I left the urgency at "low", to give my changes for 5.3-4 enough time for testing. * Do not attempt to create floppy device nodes in the postinst. They should be created by debootstrap. You could use MAKEDEV at any time to recreate them, if they get lost. (closes: #130748) * Remove makedev from the Depends line * Update README.Debian * Change the section to "base" (match the override file). -- Jochen Voss Sun, 27 Jan 2002 00:08:41 +0100 fdutils (5.3-4) unstable; urgency=low * New maintainer (with permission from Vaidhy Mayilrangam) * Use /sbin/MAKEDEV instead of MAKEFLOPPIES, because MAKEFLOPPIES is broken. Change the version requirement for the makedev dependency to 2.3.1-24. (Closes: #55668, #130473) * Call umount(2) with mountpoint instead of device. Did the old version actually work for anybody? (Closes: #120114) * Use dpkg-statoverride in the fdutilsconfig helper script instead of obsolete suidmanger. Restrict access to members of group "floppy". (Closes: #63677) * Remove confusing postinst message about fdformat being obsolete (Closes: #127853) * Improvements to the debian/rules file. Use debhelper, add the missing debhelper tokens to prerm and postinst. * Remove dh-make template debian/menu.ex (Closes: #126846) * Rename "makefloppies.1" manpage to "MAKEFLOPPIES.8". * Package is now lintian clean * Acknowledge NMUs. Closes: #96655, #74121, #90789, #96845, #97545, #99125, #96151, #67426, #81999, #95835, #51368, #82000 -- Jochen Voss Tue, 15 Jan 2002 23:40:15 +0100 fdutils (5.3-3.6) unstable; urgency=high * Non-maintainer upload. * _Really_ don't create device nodes on devfs systems. (use test -e instead of test -f for /dev/.devfsd) * This really should use MAKEDEV, but this method introduces a minimum of changes (one character in MAKEFLOPPIES). (Closes: #96845) -- Matt Zimmerman Tue, 15 Jan 2002 20:49:03 -0500 fdutils (5.3-3.5) unstable; urgency=low * Non-maintainer upload. * Don't create device nodes on devfs systems. * (Closes: #96845, #106576, #111089, #121713) -- Steve Kowalik Sat, 5 Jan 2002 00:00:48 +1100 fdutils (5.3-3.4) unstable; urgency=low * Non-maintainer upload (sorry for this, but we are freezing). * Fixed references from docbase file to /usr/doc (closes: #74121) -- Bas Zoetekouw Wed, 28 Nov 2001 16:27:24 +0100 fdutils (5.3-3.3) unstable; urgency=low * Non-maintainer upload. * Fix printf-is-a-macro issue (gcc 3.0). Closes: #99125 -- LaMont Jones Mon, 9 Jul 2001 21:39:34 -0600 fdutils (5.3-3.2) unstable; urgency=low * Non-maintainer upload. * Remove/replace some linux/ headers files to try to get fdutils to build on arm again. Thanks the Phil Blundell for the patch. (Closes: Bug#97031, Bug#97545) * Bumped Standards-Version -- Anthony Towns Mon, 28 May 2001 14:33:12 +1000 fdutils (5.3-3.1) unstable; urgency=high * Non-maintainer upload. * Add build dependencies, closes: #82000 * Build-depend on and use kernel-headers-2.2.19, closes: #90789, #81999 * Downgrade mtools recommendation to a suggestion, closes: #51368, #95835 * Remove /usr/doc/fdutils link in prerm, thanks to Adrian Bunk, closes: #67426 * Noninteractive postinst if DEBIAN_FRONTEND=Noninteractive, closes: #96151 * Urgency high, since the latter is needed for boot-floppies -- Anthony Towns Sat, 5 May 2001 18:13:51 +1000 fdutils (5.3-3) unstable; urgency=low * Fixes buffer overflow with fdmount. Thanks to Colin Phipps * closes: #51400 -- Vaidhyanathan G Mayilrangam Fri, 3 Dec 1999 16:08:54 -0500 fdutils (5.3-2) unstable; urgency=low * New Maintainer * Fixed MAKEFLOPPIES, closes: Bug #51040 * Already fixed in pervious versions, closes: Bug #12166, Bug #30782, #35891, #36596 * fdformat obselete, closes: Bug #8975, #10292 -- Vaidhyanathan G Mayilrangam Thu, 25 Nov 1999 11:54:01 -0500 fdutils (5.3-1) unstable; urgency=low * New upstream release. * Partially upgraded to standards version 3.0.1: - Updated copyright to point to /usr/share/common-licenses - First step towards FHS-compliance: Man and info pages are now installed under /usr/share. -- Anthony Fok Thu, 26 Aug 1999 05:05:59 -0600 fdutils (5.2.0.1998-07-01-3) frozen unstable; urgency=medium * [Security]: /usr/bin/fdmount is no longer installed suid root unless the user wishes to. Thanks to the configuration scripts from gnuplot. Also thanks to Thomas Rössler for the bug report and suggestion (closes: Bug#27050). * [doc/man-warning.texi,doc/*.{1,4}]: s/this items/these items/; * [debian/control]: - Now depends on debianutils (>= 1.7) due to the use of mktemp in /usr/sbin/fdutilsconfig. - Upgraded to standards version 2.5.0.0 (no changes). * [/usr/share/doc-base/fdutils]: Removed the "DVI" and "info" format entries to prevent warning messages from install-docs. -- Anthony Fok Sun, 24 Jan 1999 19:26:43 -0700 fdutils (5.2.0.1998-07-01-2) unstable; urgency=low * Removed debian/info because debhelper does not support it. * [debian/postinst,debian/prerm]: Added calls to install-info and install-docs. * [debian/rules]: Installs doc/floppy_formats. * Fdutils manual and FAQ are now registered with doc-base rather than with debian/menu (dwww). * Updated debian/copyright. -- Anthony Fok Tue, 8 Sep 1998 04:21:53 -0600 fdutils (5.2.0.1998-07-01-1) unstable; urgency=low * New upstream release: Fixed a few bugs listed in the Debian buglist posted to linux.debian.bugs.dis 1. Lessen dependancy of superformat on mtools by not failing if mformat cannot be called: low-level verify will still be done, but mbadblocks will be skipped (closes: Bug#6562, Bug#7892) 2. Fixed a few instances where the return value of getopt was misdeclared as a char instead of an integer (closes: Bug#10775, Bug#10777, Bug#10778) 3. Fixed device names in fd.4 (closes: Bug#8343) * Updated config.guess and config.sub from the latest autoconf (2.12-9). * [debian/postinst]: Runs "/usr/sbin/MAKEFLOPPIES -g" instead of "/dev/MAKEDEV floppy-all". (Yes, I decided to flip-flop. :-) (closes: #19925) * [debian/control]: Updated author's e-mail address, and fixed a typo s/www.tug.org/www.tux.org/ of the upstream website. (Oops!) :-) * [src/enh_options.c]: Commented out the undocumented and somewhat problematic "setting of variables out of environment" section. Will discuss with upstream author (closes: Bug#12166). -- Anthony Fok Fri, 28 Aug 1998 06:12:43 -0600 fdutils (5.2pl4-3) frozen unstable; urgency=low * Removed dh_du from debian/rules. (Fixed Lintian error: fdutils: unknown-control-file du) * Revised /usr/doc/fdutils/copyright. (Fixed Lintian error: fdutils: copyright-refers-to-compressed-license usr/doc/copyright/GPL.gz) * Upgraded to standards version 2.4.1.0 (no changes). -- Anthony Fok Mon, 11 May 1998 04:19:51 -0600 fdutils (5.2pl4-2) unstable; urgency=low * closes=6113 7899 10199 12509 12619 15004 * postinst: - Added "#DEBHELPER#". - No longer stops and prompts the user. (Bug#7899,#12619) - Runs "/dev/MAKEDEV floppy-all" instead of "/usr/sbin/MAKEFLOPPIES -g". (Bug#10199) * debian/control: - Depends: makedev (>= 1.6-28) (Bug#10199) - Recommends: mtools (instead of Suggests) (Bug#6113,#15004) * Changed my maintainer e-mail address to . :) * Cleaned up debian/rules. * Closed an aesthetic bug report. (Bug#12509) * Removed /usr/bin/fdformat and its manpage. fdformat is obsolete, and the simulation script is buggy and I don't know how to fix it. Use superformat instead! -- Anthony Fok Tue, 6 Jan 1998 04:04:36 -0700 fdutils (5.2pl4-1) unstable; urgency=low * New upstream release: Applied upstream patch dated 1997-11-04. * Upgraded to standards version 2.3.0.1 * debian/rules: Now uses debhelper. * Did some minor clean-up and applied some patches to original source. * Sorry, there are still lots of bugs that I haven't fixed yet. :) -- Anthony Fok Sun, 23 Nov 1997 07:01:24 -0700 fdutils (5.2pl3-2) unstable; urgency=low * Changed permission of /usr/bin/fdmount to 4755 * Modified sh script /usr/bin/fdformat to make it work with the new getfdprm and superformat in fdutils 5.x. -- Anthony Fok Mon, 4 Aug 1997 07:44:57 -0600 fdutils (5.2pl3-1) unstable; urgency=low * Added a note about the new /etc/mediaprm and /etc/driveprm in postinst. (/etc/fdprm is obsolete.) * Added a menu entry (dwww) for Fdutils_toc.html and FAQ.html * Added documentation in info, html and DVI formats * Now suggests the "mtools" package. * Compiled with libc6. (#11215) * Upgraded to standards version 2.2.0.0. * New (temporary) maintainer. :) * New upstream release, including patches dated 1997-06-29. (#11679) -- Anthony Fok Sat, 2 Aug 1997 03:19:06 -0600 fdutils (4.3-6) unstable; urgency=low * Initial conversion of fdutils 4.3-5 to new packaging standard. -- Mark W. Eichin Mon, 17 Feb 1997 20:20:21 -0500 fdutils (4.3-5) unstable; urgency=low * Corrected fdmount mode back to 4750 (Bug#4051) -- Mark W. Eichin Mon, 17 Feb 1997 20:20:21 -0500 fdutils (4.3-4) unstable; urgency=low * Corrected fdmount mode to 4755 (Bug#4051) * Usage of fdmount is still restricted to group floppy * Applied upstream patche 2108 -- Mark W. Eichin Mon, 17 Feb 1997 20:20:21 -0500 fdutils (4.3-3) unstable; urgency=low * Applied upstream patch 2406 * One more fix to postinst script (Bug#3412) -- Mark W. Eichin Thu, 27 Jun 1996 21:57:56 -0500 fdutils (4.3-2) unstable; urgency=low * Applied upstream patch 2205 * Corrected debian.rules for new naming scheme * Replaced fdformat by a shell script that calls superformat * Minor correction to debian.postinst -- Mark W. Eichin Thu, 20 Jun 1996 09:19:53 -0500 fdutils (4.3-1) unstable; urgency=low * New upstream version -- Mark W. Eichin Wed, 15 May 1996 12:34:39 -0500 fdutils (4.2-6) unstable; urgency=low * Added 'Replaces' field to control file (Bug#2932) -- Mark W. Eichin Mon, 13 May 1996 11:40:17 -0500 fdutils (4.2-5) unstable; urgency=low * Corrected some minor bugs in fdrawcmd.c and FAQ (fdutils-4.2-2104.diff) * Corrected MAKEFLOPPIES to not generate world writable devices (Bug# 2782, Bug# 2827) -- Mark W. Eichin Thu, 25 Apr 1996 13:59:13 -0500 fdutils (4.2-4) unstable; urgency=low * Corrected some minor bugs (fdutils-4.2-2503.diff) * Added "Replaces: miscutils" to control file (Bug# 2324) * Changed fdprm (Bug# 1004) -- Mark W. Eichin Thu, 11 Apr 1996 13:43:50 -0500 fdutils (4.2-3) unstable; urgency=low * Added call to MAKEFLOPPIES to postinst script (user is asked before starting it) * Corrected some minor bugs (fdutils-4.2-1602.diff) -- Mark W. Eichin Fri, 01 Mar 1996 13:42:44 -0500 fdutils (4.2-2) unstable; urgency=low * Added -s flag for fdformat * renamed fdumountd to fdmountd as proposed in fdutils-diffs 310196 * Added -g to CFLAGS -- Mark W. Eichin Sun, 04 Feb 1996 16:04:48 -0500 fdutils (4.2-1) unstable; urgency=low * Corrected controls file * Added fdformat for those who want to compare it to superformat. It is not decided yet, what we will do with this program in the future. -- Mark W. Eichin Fri, 26 Jan 1996 12:24:23 -0500 fdutils (4.2-0) unstable; urgency=low * Added Debian GNU/Linux package maintenance system files. * Configured Makefile: - Added DESTDIR-Variable for being able to install into debian-tmp -- Mark W. Eichin Tue, 09 Jan 1996 16:01:15 -0500 debian/fdmount.conf0000644000000000000000000000054211703310375011512 0ustar # /etc/fdmount.conf - system configuration file for fdmount in fdutils. # Originally written by Tibor Simko for gnuplot. # Adapted by Anthony Fok for fdutils. # Description: this file serves only to keep track of suid bit handling. # Note: this file should be modified via `/usr/sbin/fdutilsconfig' only! is_suid=no debian/fdutilsconfig0000644000000000000000000000411111703310375011746 0ustar #!/bin/sh # /usr/sbin/fdutilsconfig - configuration script for suid bit of fdmount. # Originally written by Tibor Simko for gnuplot. # Adapted by Anthony Fok for fdmount in fdutils. # note: this script modifies `/etc/fdmount.conf' configuration file. set -e set -C if [ "root" != "`whoami`" ] then echo "Sorry, only root can run this script. Exiting." exit 1 fi echo "Fdmount suid configuration:" echo if [ ! -e /etc/fdmount.conf ] then echo "Sorry, /etc/fdmount.conf not found. Exiting." exit 1 fi TMPFILE=`mktemp -q /tmp/fdmount.conf.tmp.XXXXXX` if [ $? -ne 0 ]; then echo "$0: Can't create temp file, exiting..." exit 1 fi if grep -q "^is_suid=y.*$" /etc/fdmount.conf; then old=y; else old=n; fi while true; do if [ "$old" = "y" ] then echo " Currently, fdmount is set up as setuid root, beware!" else echo " Currently, fdmount is not set up as setuid root. Good." fi echo -n " Do you want to change it? (y/n/?) [n] " read yn echo test -n "$yn" || yn="n" case "$yn" in [Nn]*) echo "Okay, keeping the old configuration." exit 0 ;; [Yy]*) if [ "$old" = "n" ] then sed -e "s/^is_suid=.*$/is_suid=yes/" >$TMPFILE chmod 644 $TMPFILE mv $TMPFILE /etc/fdmount.conf dpkg-statoverride --update --add root floppy 4750 /usr/bin/fdmount exit 0 else sed -e "s/^is_suid=.*$/is_suid=no/" >$TMPFILE chmod 644 $TMPFILE mv $TMPFILE /etc/fdmount.conf chmod u-s /usr/bin/fdmount dpkg-statoverride --remove /usr/bin/fdmount echo "Okay, fdmount is not set up as setuid root anymore." exit 0 fi ;; *) echo " In order to enable ordinary users to mount a floppy disk" echo " using fdmount, fdmount needs to be set up as setuid root." echo " Please note that this is usually considered to" echo " be a security hazard." echo ;; esac done debian/fdutils.manpages0000644000000000000000000000002711703310375012354 0ustar debian/fdutilsconfig.8