07-21-2004
There are several different drivers in a system. For example if your system has a disk drive and tape drive, there would be one driver for the disk and another driver for the tape drive. Each driver gets a number called the major number. The major number just tells the kernel which driver to use.
The minor number is passed to the driver. The driver could ignore it. Or the driver can interpret any way it wants. Usually there are sub fields in the minor number. In the case of a tape driver, one sub field would say which particular tape drive to use. Another sub field might say whether or not to automatically rewind the tape when the file is closed.
9 More Discussions You Might Find Interesting
1. Programming
To further my fledgling knowledge of C, I am re-writing some of the Unix command set. My current command is an ls-style command.
All works well, except for device files. How do I get the major/minor numbers for the dev files?
I see from the stat struct there are st_rdev and st_dev members. Do... (1 Reply)
Discussion started by: zazzybob
1 Replies
2. Shell Programming and Scripting
would like to order this input based on major.minor.release AND build number
Label abc_def_0.0.3_build_999 2008/08/01 'Created by me.'
Label abc_def_0.0.9_build_1000 2008/08/01 'Created by me.'
Label abc_def_9.0.9_build_10001 2008/08/01 'Created by me.'
Label abc_def_10.9.100_build_2... (4 Replies)
Discussion started by: gurpal2000
4 Replies
3. Solaris
Hi
Does anyone know what the major and minor numbers are in Solaris? (2 Replies)
Discussion started by: wisdom
2 Replies
4. AIX
Good evening ...
does anyone of you know how to change major/minor numbers of disk devices ?
I had to migrate from raid1 to raid5 and this messed up my ASM cluster - I know which devices should have which IDs to match the content - but I have no idea how to change it.
Any help would be... (2 Replies)
Discussion started by: zxmaus
2 Replies
5. AIX
Difference between Major and Minor in AIX (5 Replies)
Discussion started by: AIXlearner
5 Replies
6. Programming
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <sys/mkdev.h>
int
main(int argc, char *argv)
{
int i;
struct stat buf;
... (4 Replies)
Discussion started by: konvalo
4 Replies
7. Shell Programming and Scripting
Hi,
I have line like this :
proj_name/module/trunk/module_1_0
where the first "1" refers to major version and second "0" refers to minor version.
any AWK or command like that so that I can filter out the major and minor ?
like major= command | input line
minor= command |... (4 Replies)
Discussion started by: bhaskar_m
4 Replies
8. Solaris
Hi friends, Please let me know if there is any way to find out Major and Minor numbers of virtual file system like below:
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K ... (8 Replies)
Discussion started by: nitj
8 Replies
9. Shell Programming and Scripting
I want to remove all rows with a minor repeating count less than 30% compared to the major repeating count from my table. The values of a col(starting col 2) can assume is A,T,G,C and N. Each row has at least 2 values and at most 4 repeating values(out of ATGC).
N is considered a missing value... (12 Replies)
Discussion started by: newbie83
12 Replies
AMMT(8) System Manager's Manual AMMT(8)
NAME
ammt - Amanda version of mt
SYNOPSIS
ammt [ -d ] [ -f|-t device ] command [ count ]
DESCRIPTION
Ammt provides just enough of the standard mt command for the needs of Amanda. This is handy when doing a full restore and the standard mt
program has not yet been found.
Ammt also provides access to the Amanda output drivers that support various tape simulations.
See the amanda(8) man page for more details about Amanda. See the OUTPUT DRIVERS section of amanda(8) for more information on the Amanda
output drivers.
OPTIONS
-d Turn on debugging output.
-f device
Access tape device device. If not specified, the TAPE environment variable is used.
-t device
Same as -f.
command count
Which command to issue, and an optional count of operations.
COMMANDS
Each command may be abbreviated to whatever length makes it unique.
eof|weof count
Write count (default: 1) end of file marks (tapemarks).
fsf count
Skip forward count (default: 1) files.
bsf count
Skip backward count (default: 1) files.
asf count
Position to file number count (default: 0) where zero is beginning of tape. This is the same as a rewind followed by a fsf count.
rewind Rewind to beginning of tape.
offline|rewoffl
Rewind to beginning of tape and unload the tape from the drive.
status Report status information about the drive. Which data reported, and what it means, depends on the underlying operating system, and
may include:
ONLINE Indicates the drive is online and ready.
OFFLINE
Indicates the drive is offline or not ready.
BOT Indicates the drive is at beginning of tape.
EOT Indicates the drive is at end of tape.
PROTECTED
Indicates the tape is write protected.
ds Device status.
er Error register.
fileno Current tape file number.
blkno Current tape block number file.
NOTE: many systems only report good data when a tape is in the drive and ready.
AUTHOR
Marc Mengel <mengel@fnal.gov>
John R. Jackson <jrj@purdue.edu>
SEE ALSO
amanda(8)
AMMT(8)