home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: userflop
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory userfloppy0.2/, mode 40755 , uid 454 , gid 6 , size 0 , seconds 5604522025, user romano, group users
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU), owner user name: "py0.2/"
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 00 00 |userflop|py0.2/..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 34 |.... 407|55 . 4|
|00000070| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 36 30 34 35 32 32 | 0 | 5604522|
|00000090| 30 32 35 20 20 31 32 32 | 34 31 00 20 35 00 00 00 |025 122|41. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 4d 61 |userflop|py0.2/Ma|
|00000210| 6b 65 66 69 6c 65 00 00 | 00 00 00 00 00 00 00 00 |kefile..|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00000270| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00000280| 20 20 20 32 30 37 31 20 | 20 35 36 30 34 35 32 31 | 2071 | 5604521|
|00000290| 33 35 35 20 20 31 34 30 | 30 33 00 20 30 00 00 00 |355 140|03. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 20 4d 61 6b 65 66 69 | 6c 65 20 66 6f 72 20 75 |# Makefi|le for u|
|00000410| 73 65 72 6d 6f 75 6e 74 | 20 61 6e 64 20 75 73 65 |sermount| and use|
|00000420| 72 75 6d 6f 75 6e 74 20 | 61 6e 64 20 75 73 65 72 |rumount |and user|
|00000430| 66 64 66 6f 72 6d 61 74 | 0a 0a 43 43 20 3d 20 67 |fdformat|..CC = g|
|00000440| 63 63 0a 43 46 4c 41 47 | 53 20 3d 20 2d 57 61 6c |cc.CFLAG|S = -Wal|
|00000450| 6c 20 2d 4f 32 0a 4d 41 | 4e 44 49 52 20 3d 20 2f |l -O2.MA|NDIR = /|
|00000460| 75 73 72 2f 6d 61 6e 2f | 6d 61 6e 31 0a 43 41 54 |usr/man/|man1.CAT|
|00000470| 44 49 52 20 3d 20 2f 75 | 73 72 2f 6d 61 6e 2f 63 |DIR = /u|sr/man/c|
|00000480| 61 74 31 0a 49 4e 53 54 | 44 49 52 20 3d 20 2f 75 |at1.INST|DIR = /u|
|00000490| 73 72 2f 62 69 6e 0a 49 | 4e 53 54 41 4c 4c 20 3d |sr/bin.I|NSTALL =|
|000004a0| 20 69 6e 73 74 61 6c 6c | 20 2d 63 0a 4e 52 4f 46 | install| -c.NROF|
|000004b0| 46 20 3d 20 6e 72 6f 66 | 66 0a 0a 6d 6f 75 6e 74 |F = nrof|f..mount|
|000004c0| 6f 62 6a 20 3d 20 75 73 | 65 72 6d 6f 75 6e 74 2e |obj = us|ermount.|
|000004d0| 6f 0a 75 6d 6f 75 6e 74 | 6f 62 6a 20 3d 20 75 73 |o.umount|obj = us|
|000004e0| 65 72 75 6d 6f 75 6e 74 | 2e 6f 0a 66 6f 72 6d 61 |erumount|.o.forma|
|000004f0| 74 6f 62 6a 20 3d 20 75 | 73 65 72 66 64 66 6f 72 |tobj = u|serfdfor|
|00000500| 6d 61 74 2e 6f 0a 0a 61 | 6c 6c 3a 09 75 73 65 72 |mat.o..a|ll:.user|
|00000510| 6d 6f 75 6e 74 20 75 73 | 65 72 75 6d 6f 75 6e 74 |mount us|erumount|
|00000520| 20 75 73 65 72 66 64 66 | 6f 72 6d 61 74 0a 0a 6d | userfdf|ormat..m|
|00000530| 6f 75 6e 74 3a 20 24 28 | 6d 6f 75 6e 74 6f 62 6a |ount: $(|mountobj|
|00000540| 29 0a 09 24 28 43 43 29 | 20 2d 6f 20 75 73 65 72 |)..$(CC)| -o user|
|00000550| 6d 6f 75 6e 74 20 24 28 | 6d 6f 75 6e 74 6f 62 6a |mount $(|mountobj|
|00000560| 29 0a 0a 75 6d 6f 75 6e | 74 3a 09 24 28 75 6d 6f |)..umoun|t:.$(umo|
|00000570| 75 6e 74 6f 62 6a 29 0a | 09 24 28 43 43 29 20 2d |untobj).|.$(CC) -|
|00000580| 6f 20 75 73 65 72 75 6d | 6f 75 6e 74 20 24 28 75 |o userum|ount $(u|
|00000590| 6d 6f 75 6e 74 6f 62 6a | 29 0a 0a 75 73 65 72 66 |mountobj|)..userf|
|000005a0| 64 66 6f 72 6d 61 74 3a | 20 24 28 66 6f 72 6d 61 |dformat:| $(forma|
|000005b0| 74 6f 62 6a 29 0a 09 24 | 28 43 43 29 20 2d 6f 20 |tobj)..$|(CC) -o |
|000005c0| 75 73 65 72 66 64 66 6f | 72 6d 61 74 20 24 28 66 |userfdfo|rmat $(f|
|000005d0| 6f 72 6d 61 74 6f 62 6a | 29 0a 0a 63 6c 65 61 6e |ormatobj|)..clean|
|000005e0| 3a 20 20 41 4c 57 41 59 | 53 0a 09 72 6d 20 2d 66 |: ALWAY|S..rm -f|
|000005f0| 20 2a 2e 6f 20 63 6f 72 | 65 0a 0a 72 65 61 6c 2d | *.o cor|e..real-|
|00000600| 63 6c 65 61 6e 3a 20 63 | 6c 65 61 6e 0a 09 72 6d |clean: c|lean..rm|
|00000610| 20 2d 66 20 61 2e 6f 75 | 74 20 75 73 65 72 6d 6f | -f a.ou|t usermo|
|00000620| 75 6e 74 20 75 73 65 72 | 75 6d 6f 75 6e 74 20 75 |unt user|umount u|
|00000630| 73 65 72 66 64 66 6f 72 | 6d 61 74 0a 0a 69 6e 73 |serfdfor|mat..ins|
|00000640| 74 61 6c 6c 2d 6d 61 6e | 3a 0a 09 24 28 49 4e 53 |tall-man|:..$(INS|
|00000650| 54 41 4c 4c 29 20 75 73 | 65 72 6d 6f 75 6e 74 2e |TALL) us|ermount.|
|00000660| 31 20 24 28 4d 41 4e 44 | 49 52 29 2f 75 73 65 72 |1 $(MAND|IR)/user|
|00000670| 6d 6f 75 6e 74 2e 31 0a | 09 24 28 49 4e 53 54 41 |mount.1.|.$(INSTA|
|00000680| 4c 4c 29 20 75 73 65 72 | 75 6d 6f 75 6e 74 2e 31 |LL) user|umount.1|
|00000690| 20 24 28 4d 41 4e 44 49 | 52 29 2f 75 73 65 72 75 | $(MANDI|R)/useru|
|000006a0| 6d 6f 75 6e 74 2e 31 0a | 09 24 28 49 4e 53 54 41 |mount.1.|.$(INSTA|
|000006b0| 4c 4c 29 20 75 73 65 72 | 66 64 66 6f 72 6d 61 74 |LL) user|fdformat|
|000006c0| 2e 31 20 24 28 4d 41 4e | 44 49 52 29 2f 75 73 65 |.1 $(MAN|DIR)/use|
|000006d0| 72 66 64 66 6f 72 6d 61 | 74 2e 31 0a 0a 69 6e 73 |rfdforma|t.1..ins|
|000006e0| 74 61 6c 6c 3a 20 75 73 | 65 72 6d 6f 75 6e 74 20 |tall: us|ermount |
|000006f0| 75 73 65 72 75 6d 6f 75 | 6e 74 20 75 73 65 72 66 |userumou|nt userf|
|00000700| 64 66 6f 72 6d 61 74 0a | 09 24 28 49 4e 53 54 41 |dformat.|.$(INSTA|
|00000710| 4c 4c 29 20 75 73 65 72 | 6d 6f 75 6e 74 20 24 28 |LL) user|mount $(|
|00000720| 49 4e 53 54 44 49 52 29 | 2f 75 73 65 72 6d 6f 75 |INSTDIR)|/usermou|
|00000730| 6e 74 0a 09 24 28 49 4e | 53 54 41 4c 4c 29 20 75 |nt..$(IN|STALL) u|
|00000740| 73 65 72 75 6d 6f 75 6e | 74 20 24 28 49 4e 53 54 |serumoun|t $(INST|
|00000750| 44 49 52 29 2f 75 73 65 | 72 75 6d 6f 75 6e 74 0a |DIR)/use|rumount.|
|00000760| 09 24 28 49 4e 53 54 41 | 4c 4c 29 20 75 73 65 72 |.$(INSTA|LL) user|
|00000770| 66 64 66 6f 72 6d 61 74 | 20 24 28 49 4e 53 54 44 |fdformat| $(INSTD|
|00000780| 49 52 29 2f 75 73 65 72 | 66 64 66 6f 72 6d 61 74 |IR)/user|fdformat|
|00000790| 0a 09 63 68 6f 77 6e 20 | 72 6f 6f 74 20 24 28 49 |..chown |root $(I|
|000007a0| 4e 53 54 44 49 52 29 2f | 75 73 65 72 6d 6f 75 6e |NSTDIR)/|usermoun|
|000007b0| 74 20 24 28 49 4e 53 54 | 44 49 52 29 2f 75 73 65 |t $(INST|DIR)/use|
|000007c0| 72 75 6d 6f 75 6e 74 20 | 24 28 49 4e 53 54 44 49 |rumount |$(INSTDI|
|000007d0| 52 29 2f 75 73 65 72 66 | 64 66 6f 72 6d 61 74 20 |R)/userf|dformat |
|000007e0| 0a 09 63 68 6d 6f 64 20 | 75 2b 73 20 20 24 28 49 |..chmod |u+s $(I|
|000007f0| 4e 53 54 44 49 52 29 2f | 75 73 65 72 6d 6f 75 6e |NSTDIR)/|usermoun|
|00000800| 74 20 24 28 49 4e 53 54 | 44 49 52 29 2f 75 73 65 |t $(INST|DIR)/use|
|00000810| 72 75 6d 6f 75 6e 74 20 | 24 28 49 4e 53 54 44 49 |rumount |$(INSTDI|
|00000820| 52 29 2f 75 73 65 72 66 | 64 66 6f 72 6d 61 74 0a |R)/userf|dformat.|
|00000830| 0a 41 4c 57 41 59 53 3a | 0a 00 00 00 00 00 00 00 |.ALWAYS:|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 52 45 |userflop|py0.2/RE|
|00000a10| 41 44 4d 45 00 00 00 00 | 00 00 00 00 00 00 00 00 |ADME....|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00000a70| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00000a80| 20 20 20 32 35 33 32 20 | 20 35 36 30 34 35 32 32 | 2532 | 5604522|
|00000a90| 32 34 31 20 20 31 33 32 | 32 30 00 20 30 00 00 00 |241 132|20. 0...|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 54 68 69 73 20 69 73 20 | 74 68 65 20 52 45 41 44 |This is |the READ|
|00000c10| 4d 45 20 66 69 6c 65 20 | 66 6f 72 20 74 68 65 20 |ME file |for the |
|00000c20| 75 73 65 72 66 6c 6f 70 | 70 79 20 70 61 63 6b 61 |userflop|py packa|
|00000c30| 67 65 20 66 6f 72 20 4c | 69 6e 75 78 0a 44 61 74 |ge for L|inux.Dat|
|00000c40| 65 3a 20 32 38 2d 4a 75 | 6e 2d 39 34 0a 56 65 72 |e: 28-Ju|n-94.Ver|
|00000c50| 73 69 6f 6e 3a 20 30 2e | 32 0a 41 75 74 68 6f 72 |sion: 0.|2.Author|
|00000c60| 3a 20 50 65 74 65 72 20 | 4f 72 62 61 65 6b 20 3c |: Peter |Orbaek <|
|00000c70| 70 6f 65 40 64 61 69 6d | 69 2e 61 61 75 2e 64 6b |poe@daim|i.aau.dk|
|00000c80| 3e 0a 20 20 20 20 20 20 | 20 20 52 6f 6d 61 6e 6f |>. | Romano|
|00000c90| 20 47 69 61 6e 6e 65 74 | 74 69 20 3c 72 6f 6d 61 | Giannet|ti <roma|
|00000ca0| 6e 6f 40 73 65 6e 73 6f | 72 65 73 32 2e 66 69 73 |no@senso|res2.fis|
|00000cb0| 2e 75 63 6d 2e 65 73 3e | 0a 0a 43 68 61 6e 67 65 |.ucm.es>|..Change|
|00000cc0| 73 20 66 72 6f 6d 20 30 | 2e 31 20 74 6f 20 30 2e |s from 0|.1 to 0.|
|00000cd0| 32 0a 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |2.======|========|
|00000ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 0a 53 74 75 70 69 |========|=..Stupi|
|00000cf0| 64 20 62 75 67 20 66 69 | 78 2e 20 54 68 61 6e 6b |d bug fi|x. Thank|
|00000d00| 73 20 74 6f 20 53 61 6d | 73 6f 6e 20 48 2e 20 4c |s to Sam|son H. L|
|00000d10| 65 65 20 3c 73 68 6c 30 | 40 4c 65 68 69 67 68 2e |ee <shl0|@Lehigh.|
|00000d20| 45 44 55 3e 0a 0a 51 75 | 69 63 6b 20 69 6e 73 74 |EDU>..Qu|ick inst|
|00000d30| 61 6c 6c 61 74 69 6f 6e | 20 67 75 69 64 65 0a 3d |allation| guide.=|
|00000d40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000d50| 3d 3d 3d 3d 3d 3d 3d 0a | 0a 45 64 69 74 20 74 68 |=======.|.Edit th|
|00000d60| 65 20 23 64 65 66 69 6e | 65 20 46 44 46 4f 52 4d |e #defin|e FDFORM|
|00000d70| 41 54 20 69 6e 20 75 73 | 65 72 66 64 66 6f 72 6d |AT in us|erfdform|
|00000d80| 61 74 2e 63 20 74 6f 20 | 73 70 65 63 69 66 79 20 |at.c to |specify |
|00000d90| 79 6f 75 72 20 66 75 6c | 6c 20 70 61 74 68 20 0a |your ful|l path .|
|00000da0| 74 6f 20 66 64 66 6f 72 | 6d 61 74 2e 0a 0a 09 6d |to fdfor|mat....m|
|00000db0| 61 6b 65 0a 0a 49 74 20 | 62 75 69 6c 64 73 20 63 |ake..It |builds c|
|00000dc0| 6c 65 61 6e 6c 79 20 77 | 69 74 68 20 67 63 63 2d |leanly w|ith gcc-|
|00000dd0| 32 2e 35 2e 38 20 61 6e | 64 20 4c 69 6e 75 78 20 |2.5.8 an|d Linux |
|00000de0| 31 2e 31 2e 31 38 20 28 | 6c 69 62 63 20 34 2e 35 |1.1.18 (|libc 4.5|
|00000df0| 2e 32 31 29 0a 0a 41 6e | 64 20 6f 70 74 69 6f 6e |.21)..An|d option|
|00000e00| 61 6c 6c 79 20 61 73 20 | 72 6f 6f 74 20 28 43 48 |ally as |root (CH|
|00000e10| 45 43 4b 20 74 68 65 20 | 4d 61 6b 65 66 69 6c 65 |ECK the |Makefile|
|00000e20| 20 66 69 72 73 74 21 29 | 3a 0a 0a 09 6d 61 6b 65 | first!)|:...make|
|00000e30| 20 69 6e 73 74 61 6c 6c | 2d 6d 61 6e 0a 09 6d 61 | install|-man..ma|
|00000e40| 6b 65 20 69 6e 73 74 61 | 6c 6c 0a 0a 0a 44 65 73 |ke insta|ll...Des|
|00000e50| 63 72 69 70 74 69 6f 6e | 0a 3d 3d 3d 3d 3d 3d 3d |cription|.=======|
|00000e60| 3d 3d 3d 3d 0a 0a 54 68 | 69 73 20 70 61 63 6b 61 |====..Th|is packa|
|00000e70| 67 65 20 70 65 72 6d 69 | 74 73 20 75 73 65 72 73 |ge permi|ts users|
|00000e80| 20 74 6f 20 68 61 76 65 | 20 61 20 66 75 6c 6c 20 | to have| a full |
|00000e90| 61 63 63 65 73 73 20 74 | 6f 20 66 6c 6f 70 70 79 |access t|o floppy|
|00000ea0| 0a 64 69 73 6b 73 2e 20 | 28 41 6e 64 2c 20 62 75 |.disks. |(And, bu|
|00000eb0| 74 20 49 20 63 61 6e 6e | 6f 74 20 74 65 73 74 20 |t I cann|ot test |
|00000ec0| 69 74 2c 20 63 64 72 6f | 6d 20 61 6e 64 20 73 69 |it, cdro|m and si|
|00000ed0| 6d 69 6c 61 72 29 2e 20 | 0a 0a 46 69 72 73 74 2c |milar). |..First,|
|00000ee0| 20 75 73 65 72 6d 6f 75 | 6e 74 20 61 6e 64 20 75 | usermou|nt and u|
|00000ef0| 73 65 72 75 6d 6f 75 6e | 74 20 61 6c 6c 6f 77 20 |serumoun|t allow |
|00000f00| 75 73 65 72 20 74 6f 20 | 6d 6f 75 6e 74 20 74 68 |user to |mount th|
|00000f10| 65 69 72 20 64 69 73 6b | 73 20 77 68 65 6e 20 0a |eir disk|s when .|
|00000f20| 61 75 74 68 6f 72 69 7a | 65 64 20 62 79 20 74 68 |authoriz|ed by th|
|00000f30| 65 20 73 79 73 74 65 6d | 20 6d 61 6e 61 67 65 72 |e system| manager|
|00000f40| 2e 20 54 68 65 20 6d 61 | 69 6e 20 64 69 66 66 65 |. The ma|in diffe|
|00000f50| 72 65 6e 63 65 20 62 65 | 74 77 65 65 6e 20 74 68 |rence be|tween th|
|00000f60| 69 73 0a 6d 6f 75 6e 74 | 20 61 6e 64 20 74 68 65 |is.mount| and the|
|00000f70| 20 6f 6c 64 20 75 73 65 | 72 6d 6f 75 6e 74 20 69 | old use|rmount i|
|00000f80| 73 20 74 68 61 74 20 74 | 68 65 20 73 75 70 65 72 |s that t|he super|
|00000f90| 75 73 65 72 20 63 61 6e | 20 73 70 65 63 69 66 79 |user can| specify|
|00000fa0| 20 6d 6f 72 65 0a 74 68 | 61 6e 20 6f 6e 65 20 65 | more.th|an one e|
|00000fb0| 6e 74 72 79 20 66 6f 72 | 20 74 68 65 20 70 61 69 |ntry for| the pai|
|00000fc0| 72 20 64 65 76 69 63 65 | 2f 64 69 72 65 63 74 6f |r device|/directo|
|00000fd0| 72 79 20 69 6e 20 74 68 | 65 20 61 75 74 68 6f 72 |ry in th|e author|
|00000fe0| 69 7a 61 74 69 6f 6e 0a | 66 69 6c 65 2c 20 77 69 |ization.|file, wi|
|00000ff0| 74 68 20 64 69 66 66 65 | 72 65 6e 74 20 74 79 70 |th diffe|rent typ|
|00001000| 65 2e 20 49 66 20 74 68 | 65 20 2f 65 74 63 2f 75 |e. If th|e /etc/u|
|00001010| 66 73 74 61 62 20 6c 6f | 6f 6b 20 6c 69 6b 65 20 |fstab lo|ok like |
|00001020| 74 68 65 20 6f 6e 65 20 | 69 6e 20 74 68 65 0a 64 |the one |in the.d|
|00001030| 69 73 74 2c 20 75 73 65 | 72 73 20 63 61 6e 20 6d |ist, use|rs can m|
|00001040| 6f 75 6e 74 20 2f 64 65 | 76 2f 66 64 30 20 6f 6e |ount /de|v/fd0 on|
|00001050| 20 2f 66 6c 6f 70 70 79 | 20 77 69 74 68 20 74 79 | /floppy| with ty|
|00001060| 70 65 73 20 6d 73 64 6f | 73 2c 6d 69 6e 69 78 2c |pes msdo|s,minix,|
|00001070| 65 78 74 32 2c 0a 75 6d | 73 64 6f 73 2e 20 74 68 |ext2,.um|sdos. th|
|00001080| 65 20 2f 66 6c 6f 70 70 | 79 20 64 69 72 20 69 73 |e /flopp|y dir is|
|00001090| 20 63 68 6f 77 6e 28 29 | 65 64 20 74 6f 20 74 68 | chown()|ed to th|
|000010a0| 65 20 75 73 65 72 20 69 | 66 20 74 68 65 20 6d 6f |e user i|f the mo|
|000010b0| 75 6e 74 20 77 61 73 0a | 73 75 63 63 65 73 73 66 |unt was.|successf|
|000010c0| 75 6c 2e 20 0a 0a 54 68 | 65 20 75 73 65 72 66 64 |ul. ..Th|e userfd|
|000010d0| 66 6f 72 6d 61 74 20 69 | 73 20 73 69 6d 70 6c 79 |format i|s simply|
|000010e0| 20 61 20 77 72 61 70 70 | 65 72 20 74 68 61 74 20 | a wrapp|er that |
|000010f0| 63 61 6c 6c 20 66 64 66 | 6f 72 6d 61 74 20 61 6c |call fdf|ormat al|
|00001100| 6c 6f 77 69 6e 67 20 74 | 6f 0a 6e 6f 72 6d 61 6c |lowing t|o.normal|
|00001110| 20 75 73 65 72 73 20 74 | 6f 20 6c 6f 77 20 6c 65 | users t|o low le|
|00001120| 76 65 6c 20 66 6f 72 6d | 61 74 20 66 6c 6f 70 70 |vel form|at flopp|
|00001130| 79 20 77 68 65 72 65 20 | 74 68 65 79 20 68 61 76 |y where |they hav|
|00001140| 65 20 77 72 69 74 65 0a | 70 65 72 6d 69 73 73 69 |e write.|permissi|
|00001150| 6f 6e 73 2e 20 0a 0a 20 | 20 0a 00 00 00 00 00 00 |ons. .. | .......|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 75 73 |userflop|py0.2/us|
|00001210| 65 72 6d 6f 75 6e 74 2e | 31 00 00 00 00 00 00 00 |ermount.|1.......|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00001270| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00001280| 20 20 20 36 31 31 32 20 | 20 35 36 30 34 30 33 34 | 6112 | 5604034|
|00001290| 37 30 35 20 20 31 34 34 | 36 34 00 20 30 00 00 00 |705 144|64. 0...|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 2e 54 48 20 55 53 45 52 | 4d 4f 55 4e 54 20 31 20 |.TH USER|MOUNT 1 |
|00001410| 5c 22 20 2d 2a 2d 20 6e | 72 6f 66 66 20 2d 2a 2d |\" -*- n|roff -*-|
|00001420| 0a 2e 53 48 20 4e 41 4d | 45 0a 75 73 65 72 6d 6f |..SH NAM|E.usermo|
|00001430| 75 6e 74 20 5c 2d 20 6d | 6f 75 6e 74 20 66 69 6c |unt \- m|ount fil|
|00001440| 65 73 79 73 74 65 6d 73 | 0a 2e 53 48 20 53 59 4e |esystems|..SH SYN|
|00001450| 4f 50 53 49 53 0a 2e 42 | 20 75 73 65 72 6d 6f 75 |OPSIS..B| usermou|
|00001460| 6e 74 0a 5b 5c 2d 66 6e | 70 72 76 5d 20 5b 5c 2d |nt.[\-fn|prv] [\-|
|00001470| 74 0a 2e 49 52 20 74 79 | 70 65 20 5d 0a 5b 5c 2d |t..IR ty|pe ].[\-|
|00001480| 6f 0a 2e 49 52 20 6f 70 | 74 69 6f 6e 73 20 5d 0a |o..IR op|tions ].|
|00001490| 2e 52 49 20 5b 5b 20 64 | 65 76 20 5d 0a 2e 49 52 |.RI [[ d|ev ]..IR|
|000014a0| 20 64 69 72 20 5d 0a 0a | 2e 53 48 20 44 45 53 43 | dir ]..|.SH DESC|
|000014b0| 52 49 50 54 49 4f 4e 0a | 54 68 69 73 20 6d 61 6e |RIPTION.|This man|
|000014c0| 75 61 6c 20 64 65 73 63 | 72 69 70 65 73 20 74 68 |ual desc|ripes th|
|000014d0| 65 20 6d 6f 75 6e 74 20 | 63 6f 6d 6d 61 6e 64 20 |e mount |command |
|000014e0| 65 78 74 65 6e 64 65 64 | 20 77 69 74 68 20 73 75 |extended| with su|
|000014f0| 70 70 6f 72 74 20 66 6f | 72 20 75 73 65 72 0a 6d |pport fo|r user.m|
|00001500| 6f 75 6e 74 61 62 6c 65 | 20 66 69 6c 65 73 79 73 |ountable| filesys|
|00001510| 74 65 6d 73 2e 20 49 66 | 20 62 6f 74 68 0a 2e 49 |tems. If| both..I|
|00001520| 20 64 65 76 0a 61 6e 64 | 20 0a 2e 49 20 64 69 72 | dev.and| ..I dir|
|00001530| 0a 69 73 20 67 69 76 65 | 6e 2c 20 74 68 65 6e 20 |.is give|n, then |
|00001540| 74 68 65 20 64 65 76 69 | 63 65 0a 2e 49 20 64 65 |the devi|ce..I de|
|00001550| 76 0a 69 73 20 6d 6f 75 | 6e 74 65 64 20 6f 6e 20 |v.is mou|nted on |
|00001560| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 0a 2e 49 |the dire|ctory..I|
|00001570| 20 64 69 72 0a 77 68 69 | 63 68 20 69 73 20 70 6f | dir.whi|ch is po|
|00001580| 73 73 69 62 6c 79 20 63 | 72 65 61 74 65 64 20 6f |ssibly c|reated o|
|00001590| 6e 6c 79 20 69 66 20 74 | 68 65 72 65 20 69 73 20 |nly if t|here is |
|000015a0| 61 20 65 78 61 63 74 20 | 6d 61 74 63 68 20 69 6e |a exact |match in|
|000015b0| 20 2f 65 74 63 2f 75 66 | 73 74 61 62 2e 0a 0a 49 | /etc/uf|stab...I|
|000015c0| 66 20 6f 6e 6c 79 0a 2e | 49 20 64 65 76 0a 69 73 |f only..|I dev.is|
|000015d0| 20 6d 69 73 73 69 6e 67 | 2c 20 74 68 65 6e 20 74 | missing|, then t|
|000015e0| 68 65 20 64 65 76 69 63 | 65 20 6d 61 74 63 68 69 |he devic|e matchi|
|000015f0| 6e 67 20 74 68 61 74 20 | 64 69 72 65 63 74 6f 72 |ng that |director|
|00001600| 79 20 69 73 20 6c 6f 6f | 6b 65 64 20 75 70 20 69 |y is loo|ked up i|
|00001610| 6e 20 0a 2f 65 74 63 2f | 75 66 73 74 61 62 2e 20 |n ./etc/|ufstab. |
|00001620| 0a 0a 49 66 20 0a 2e 49 | 20 74 79 70 65 20 0a 69 |..If ..I| type .i|
|00001630| 73 20 6d 69 73 73 69 6e | 67 2c 20 74 68 65 20 74 |s missin|g, the t|
|00001640| 79 70 65 20 6f 66 20 74 | 68 65 20 6d 6f 75 6e 74 |ype of t|he mount|
|00001650| 69 6e 67 20 77 69 6c 6c | 20 62 65 20 74 68 65 20 |ing will| be the |
|00001660| 6f 6e 65 20 6f 66 20 74 | 68 65 20 66 69 72 73 74 |one of t|he first|
|00001670| 0a 6d 61 74 63 68 69 6e | 67 20 65 6e 74 72 79 20 |.matchin|g entry |
|00001680| 69 6e 20 2f 65 74 63 2f | 66 73 74 61 62 2e 20 4f |in /etc/|fstab. O|
|00001690| 74 68 65 72 77 69 73 65 | 2c 20 0a 2e 42 20 75 73 |therwise|, ..B us|
|000016a0| 65 72 6d 6f 75 6e 74 0a | 77 69 6c 6c 20 73 65 61 |ermount.|will sea|
|000016b0| 72 63 68 20 61 20 63 6f | 6d 70 6c 65 74 65 6c 79 |rch a co|mpletely|
|000016c0| 20 6d 61 74 63 68 69 6e | 67 20 65 6e 74 72 79 2c | matchin|g entry,|
|000016d0| 20 77 69 74 68 20 74 68 | 65 20 73 61 6d 65 20 74 | with th|e same t|
|000016e0| 79 70 65 2c 20 61 6e 64 | 20 6f 6e 6c 79 0a 69 66 |ype, and| only.if|
|000016f0| 20 66 6f 75 6e 64 20 74 | 68 65 20 6d 6f 75 6e 74 | found t|he mount|
|00001700| 20 77 69 6c 6c 20 62 65 | 20 64 6f 6e 65 2e 0a 0a | will be| done...|
|00001710| 0a 49 66 20 6e 6f 20 61 | 72 67 75 6d 65 6e 74 73 |.If no a|rguments|
|00001720| 20 61 72 65 20 67 69 76 | 65 6e 20 74 6f 20 0a 2e | are giv|en to ..|
|00001730| 42 20 75 73 65 72 6d 6f | 75 6e 74 0a 74 68 65 6e |B usermo|unt.then|
|00001740| 20 5c 2d 70 20 69 73 20 | 61 73 73 75 6d 65 64 2e | \-p is |assumed.|
|00001750| 0a 0a 2e 53 53 20 4f 50 | 54 49 4f 4e 53 0a 2e 54 |...SS OP|TIONS..T|
|00001760| 50 0a 5c 2d 66 0a 46 61 | 6b 65 20 61 6e 20 65 6e |P.\-f.Fa|ke an en|
|00001770| 74 72 79 20 69 6e 20 2f | 65 74 63 2f 6d 74 61 62 |try in /|etc/mtab|
|00001780| 20 77 69 74 68 6f 75 74 | 20 61 63 74 75 61 6c 6c | without| actuall|
|00001790| 79 20 6d 6f 75 6e 74 69 | 6e 67 20 61 6e 79 74 68 |y mounti|ng anyth|
|000017a0| 69 6e 67 2e 0a 2e 54 50 | 0a 5c 2d 6e 0a 44 6f 20 |ing...TP|.\-n.Do |
|000017b0| 6e 6f 74 20 77 72 69 74 | 65 20 61 6e 20 65 6e 74 |not writ|e an ent|
|000017c0| 72 79 20 69 6e 20 2f 65 | 74 63 2f 6d 74 61 62 20 |ry in /e|tc/mtab |
|000017d0| 66 6f 72 20 74 68 65 20 | 6d 6f 75 6e 74 2e 0a 2e |for the |mount...|
|000017e0| 54 50 0a 5c 2d 70 0a 50 | 72 69 6e 74 20 74 68 65 |TP.\-p.P|rint the|
|000017f0| 20 65 6e 74 72 79 20 74 | 68 61 74 20 77 6f 75 6c | entry t|hat woul|
|00001800| 64 20 6f 74 68 65 72 77 | 69 73 65 20 68 61 76 65 |d otherw|ise have|
|00001810| 20 62 65 65 6e 20 77 72 | 69 74 74 65 6e 20 74 6f | been wr|itten to|
|00001820| 20 2f 65 74 63 2f 6d 74 | 61 62 20 6f 6e 20 73 74 | /etc/mt|ab on st|
|00001830| 64 6f 75 74 2e 0a 2e 54 | 50 0a 5c 2d 72 0a 4d 6f |dout...T|P.\-r.Mo|
|00001840| 75 6e 74 20 74 68 65 20 | 66 69 6c 65 73 79 73 74 |unt the |filesyst|
|00001850| 65 6d 28 73 29 20 72 65 | 61 64 2d 6f 6e 6c 79 2e |em(s) re|ad-only.|
|00001860| 0a 2e 54 50 0a 5c 2d 76 | 0a 56 65 72 62 6f 73 65 |..TP.\-v|.Verbose|
|00001870| 2e 0a 2e 54 50 0a 5c 2d | 74 20 5c 66 49 74 79 70 |...TP.\-|t \fItyp|
|00001880| 65 5c 66 52 0a 4d 6f 75 | 6e 74 20 74 68 65 20 66 |e\fR.Mou|nt the f|
|00001890| 69 6c 65 73 79 73 74 65 | 6d 28 73 29 20 6f 66 20 |ilesyste|m(s) of |
|000018a0| 74 68 65 20 67 69 76 65 | 6e 20 0a 2e 49 52 20 74 |the give|n ..IR t|
|000018b0| 79 70 65 20 2e 0a 43 75 | 72 72 65 6e 74 6c 79 20 |ype ..Cu|rrently |
|000018c0| 28 4c 69 6e 75 78 20 56 | 31 2e 30 2e 39 29 20 74 |(Linux V|1.0.9) t|
|000018d0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 79 70 |he follo|wing typ|
|000018e0| 65 73 20 61 72 65 20 73 | 75 70 70 6f 72 74 65 64 |es are s|upported|
|000018f0| 3a 0a 2e 42 20 22 6d 69 | 6e 69 78 2c 20 6d 73 64 |:..B "mi|nix, msd|
|00001900| 6f 73 2c 20 70 72 6f 63 | 2c 20 65 78 74 32 2c 20 |os, proc|, ext2, |
|00001910| 6e 66 73 2c 20 69 73 6f | 66 73 2c 20 78 66 73 2c |nfs, iso|fs, xfs,|
|00001920| 20 75 6d 73 64 6f 73 2c | 20 73 79 73 76 22 2c 0a | umsdos,| sysv",.|
|00001930| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 79 6f 75 |dependin|g on you|
|00001940| 72 20 6b 65 72 6e 65 6c | 20 63 6f 6e 66 69 67 75 |r kernel| configu|
|00001950| 72 61 74 69 6f 6e 2e 0a | 49 66 20 6e 6f 0a 2e 49 |ration..|If no..I|
|00001960| 20 74 79 70 65 0a 69 73 | 20 67 69 76 65 6e 2c 20 | type.is| given, |
|00001970| 74 68 65 6e 20 0a 74 68 | 65 20 6f 6e 65 20 6f 66 |then .th|e one of|
|00001980| 20 74 68 65 20 66 69 72 | 73 74 20 2f 65 74 63 2f | the fir|st /etc/|
|00001990| 75 66 73 74 61 62 20 6d | 61 74 63 68 69 6e 67 20 |ufstab m|atching |
|000019a0| 65 6e 74 72 79 0a 69 73 | 20 61 73 73 75 6d 65 64 |entry.is| assumed|
|000019b0| 2e 0a 0a 2e 54 50 0a 5c | 2d 6f 20 5c 66 49 6f 70 |....TP.\|-o \fIop|
|000019c0| 74 69 6f 6e 73 5c 66 52 | 0a 4d 6f 75 6e 74 20 74 |tions\fR|.Mount t|
|000019d0| 68 65 20 66 69 6c 65 73 | 79 73 74 65 6d 28 73 29 |he files|ystem(s)|
|000019e0| 20 77 69 74 68 20 74 68 | 65 20 67 69 76 65 6e 0a | with th|e given.|
|000019f0| 2e 49 52 20 6f 70 74 69 | 6f 6e 73 20 2e 0a 54 68 |.IR opti|ons ..Th|
|00001a00| 65 20 0a 2e 49 20 6f 70 | 74 69 6f 6e 73 0a 69 73 |e ..I op|tions.is|
|00001a10| 20 61 20 63 6f 6d 6d 61 | 20 73 65 70 61 72 61 74 | a comma| separat|
|00001a20| 65 64 20 6c 69 73 74 20 | 6f 66 20 6b 65 79 77 6f |ed list |of keywo|
|00001a30| 72 64 73 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 6e |rds cont|aining n|
|00001a40| 6f 20 77 68 69 74 65 20 | 73 70 61 63 65 2e 0a 54 |o white |space..T|
|00001a50| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 0a 2e 49 20 |he follo|wing..I |
|00001a60| 6f 70 74 69 6f 6e 73 0a | 61 72 65 20 73 75 70 70 |options.|are supp|
|00001a70| 6f 72 74 65 64 20 66 6f | 72 20 61 6c 6c 20 66 69 |orted fo|r all fi|
|00001a80| 6c 65 73 79 73 74 65 6d | 20 74 79 70 65 73 3a 20 |lesystem| types: |
|00001a90| 28 74 68 6f 75 67 68 20 | 74 68 65 79 20 6d 61 79 |(though |they may|
|00001aa0| 20 6e 6f 74 20 62 65 20 | 69 6d 70 6c 65 6d 65 6e | not be |implemen|
|00001ab0| 74 65 64 29 0a 2e 50 50 | 0a 2e 52 53 0a 2e 42 52 |ted)..PP|..RS..BR|
|00001ac0| 20 72 6f 20 3a 0a 72 65 | 61 64 2d 6f 6e 6c 79 2e | ro :.re|ad-only.|
|00001ad0| 0a 0a 2e 42 52 20 72 77 | 20 3a 0a 72 65 61 64 2d |...BR rw| :.read-|
|00001ae0| 77 72 69 74 65 2e 20 54 | 68 69 73 20 69 73 20 64 |write. T|his is d|
|00001af0| 65 66 61 75 6c 74 2e 0a | 0a 2e 42 52 20 73 75 69 |efault..|..BR sui|
|00001b00| 64 20 3a 0a 41 6c 6c 6f | 77 20 73 65 74 75 69 64 |d :.Allo|w setuid|
|00001b10| 20 62 69 74 73 20 6f 6e | 20 65 78 65 63 75 74 61 | bits on| executa|
|00001b20| 62 6c 65 73 20 74 6f 20 | 74 61 6b 65 20 65 66 66 |bles to |take eff|
|00001b30| 65 63 74 20 6f 6e 20 74 | 68 65 20 6d 6f 75 6e 74 |ect on t|he mount|
|00001b40| 65 64 20 76 6f 6c 75 6d | 65 2e 20 54 68 69 73 0a |ed volum|e. This.|
|00001b50| 69 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 2e 0a |is the d|efault..|
|00001b60| 0a 2e 42 52 20 6e 6f 73 | 75 69 64 20 3a 0a 49 67 |..BR nos|uid :.Ig|
|00001b70| 6e 6f 72 65 20 73 65 74 | 75 69 64 20 62 69 74 73 |nore set|uid bits|
|00001b80| 20 6f 6e 20 65 78 65 63 | 75 74 61 62 6c 65 73 20 | on exec|utables |
|00001b90| 6f 6e 20 74 68 65 20 6d | 6f 75 6e 74 65 64 20 76 |on the m|ounted v|
|00001ba0| 6f 6c 75 6d 65 2e 0a 0a | 2e 42 52 20 6e 6f 64 65 |olume...|.BR node|
|00001bb0| 76 20 3a 0a 44 69 73 61 | 6c 6c 6f 77 20 64 65 76 |v :.Disa|llow dev|
|00001bc0| 69 63 65 20 66 69 6c 65 | 73 20 6f 6e 20 74 68 65 |ice file|s on the|
|00001bd0| 20 6d 6f 75 6e 74 65 64 | 20 76 6f 6c 75 6d 65 2e | mounted| volume.|
|00001be0| 0a 0a 2e 42 52 20 6e 6f | 65 78 65 63 20 3a 0a 44 |...BR no|exec :.D|
|00001bf0| 69 73 61 6c 6c 6f 77 20 | 65 78 65 63 75 74 69 6f |isallow |executio|
|00001c00| 6e 20 6f 66 20 62 69 6e | 61 72 69 65 73 20 64 69 |n of bin|aries di|
|00001c10| 72 65 63 74 6c 79 20 66 | 72 6f 6d 20 74 68 65 20 |rectly f|rom the |
|00001c20| 6d 6f 75 6e 74 65 64 20 | 76 6f 6c 75 6d 65 2e 20 |mounted |volume. |
|00001c30| 0a 0a 2e 42 52 20 73 79 | 6e 63 20 3a 0a 41 6c 77 |...BR sy|nc :.Alw|
|00001c40| 61 79 73 20 6b 65 65 70 | 20 74 68 65 20 6d 6f 75 |ays keep| the mou|
|00001c50| 6e 74 65 64 20 76 6f 6c | 75 6d 65 20 73 79 6e 63 |nted vol|ume sync|
|00001c60| 27 65 64 2e 0a 2e 52 45 | 0a 2e 50 50 0a 54 68 65 |'ed...RE|..PP.The|
|00001c70| 20 64 65 66 61 75 6c 74 | 73 20 6f 70 74 69 6f 6e | default|s option|
|00001c80| 73 20 66 6f 72 20 74 68 | 65 20 6e 6f 72 6d 61 6c |s for th|e normal|
|00001c90| 20 75 73 65 72 20 61 72 | 65 0a 2e 42 20 6e 6f 73 | user ar|e..B nos|
|00001ca0| 75 69 64 2c 6e 6f 65 78 | 65 63 2c 6e 6f 64 65 76 |uid,noex|ec,nodev|
|00001cb0| 0a 74 68 61 74 20 61 72 | 65 20 6d 61 6e 64 61 74 |.that ar|e mandat|
|00001cc0| 6f 72 79 21 20 54 68 65 | 20 5c 2d 6f 20 6f 70 74 |ory! The| \-o opt|
|00001cd0| 69 6f 6e 20 6d 61 6b 65 | 73 20 6e 6f 20 64 69 66 |ion make|s no dif|
|00001ce0| 66 65 72 65 6e 63 65 20 | 66 6f 72 20 6f 72 64 69 |ference |for ordi|
|00001cf0| 6e 61 72 79 0a 75 73 65 | 72 73 20 28 49 74 27 73 |nary.use|rs (It's|
|00001d00| 20 68 65 72 65 20 66 6f | 72 20 63 6f 6d 70 61 74 | here fo|r compat|
|00001d10| 69 62 69 6c 69 74 79 29 | 2e 20 54 68 65 20 6f 6e |ibility)|. The on|
|00001d20| 6c 79 20 20 77 61 79 20 | 74 6f 20 68 61 76 65 20 |ly way |to have |
|00001d30| 64 69 66 66 65 72 65 6e | 74 20 0a 6d 6f 75 6e 74 |differen|t .mount|
|00001d40| 20 6f 70 74 69 6f 6e 73 | 20 69 73 20 74 6f 20 68 | options| is to h|
|00001d50| 61 76 65 20 69 74 20 73 | 70 65 63 69 66 69 65 64 |ave it s|pecified|
|00001d60| 20 69 6e 20 2f 65 74 63 | 2f 75 66 73 74 61 62 2e | in /etc|/ufstab.|
|00001d70| 0a 0a 41 6c 73 6f 2c 20 | 0a 2e 42 20 64 65 66 61 |..Also, |..B defa|
|00001d80| 75 6c 74 73 0a 69 6e 20 | 74 68 65 20 6f 70 74 69 |ults.in |the opti|
|00001d90| 6f 6e 73 20 66 69 65 6c | 64 20 6f 66 20 74 68 65 |ons fiel|d of the|
|00001da0| 20 2f 65 74 63 2f 75 66 | 73 74 61 62 20 6d 65 61 | /etc/uf|stab mea|
|00001db0| 6e 73 0a 2e 42 20 6e 6f | 73 75 69 64 2c 6e 6f 65 |ns..B no|suid,noe|
|00001dc0| 78 65 63 2c 6e 6f 64 65 | 76 2c 72 6f 0a 69 6e 73 |xec,node|v,ro.ins|
|00001dd0| 74 65 61 64 20 6f 66 0a | 2e 42 20 73 75 69 64 2c |tead of.|.B suid,|
|00001de0| 72 77 0a 61 73 20 69 74 | 20 64 6f 65 73 20 69 6e |rw.as it| does in|
|00001df0| 20 2f 65 74 63 2f 66 73 | 74 61 62 2e 0a 0a 2e 53 | /etc/fs|tab....S|
|00001e00| 48 20 46 49 4c 45 53 0a | 2e 54 50 0a 2f 65 74 63 |H FILES.|.TP./etc|
|00001e10| 2f 75 66 73 74 61 62 0a | 48 6f 6c 64 73 20 61 20 |/ufstab.|Holds a |
|00001e20| 74 61 62 6c 65 20 6f 66 | 20 66 69 6c 65 73 79 73 |table of| filesys|
|00001e30| 74 65 6d 73 2c 20 77 68 | 65 72 65 20 74 68 65 79 |tems, wh|ere they|
|00001e40| 20 73 68 6f 75 6c 64 20 | 62 65 20 6d 6f 75 6e 74 | should |be mount|
|00001e50| 65 64 2c 20 77 69 74 68 | 0a 77 68 61 74 20 6f 70 |ed, with|.what op|
|00001e60| 74 69 6f 6e 73 20 61 6e | 64 20 66 69 6c 65 73 79 |tions an|d filesy|
|00001e70| 73 74 65 6d 20 74 79 70 | 65 2e 0a 2e 54 50 0a 2f |stem typ|e...TP./|
|00001e80| 65 74 63 2f 6d 74 61 62 | 0a 48 6f 6c 64 73 20 61 |etc/mtab|.Holds a|
|00001e90| 20 74 61 62 6c 65 20 6f | 66 20 63 75 72 72 65 6e | table o|f curren|
|00001ea0| 74 6c 79 20 6d 6f 75 6e | 74 65 64 20 66 69 6c 65 |tly moun|ted file|
|00001eb0| 73 79 73 74 65 6d 73 2e | 0a 2e 54 50 0a 2f 65 74 |systems.|..TP./et|
|00001ec0| 63 2f 6d 74 61 62 7e 0a | 41 20 6c 6f 63 6b 20 66 |c/mtab~.|A lock f|
|00001ed0| 69 6c 65 2c 20 74 68 65 | 20 65 78 69 73 74 65 6e |ile, the| existen|
|00001ee0| 63 65 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |ce of th|is file |
|00001ef0| 70 72 65 76 65 6e 74 73 | 20 0a 2e 42 20 6d 6f 75 |prevents| ..B mou|
|00001f00| 6e 74 0a 66 72 6f 6d 20 | 63 68 61 6e 67 69 6e 67 |nt.from |changing|
|00001f10| 20 61 6e 79 74 68 69 6e | 67 2e 0a 0a 2e 53 48 20 | anythin|g....SH |
|00001f20| 41 55 54 48 4f 52 0a 54 | 68 69 73 20 76 65 72 73 |AUTHOR.T|his vers|
|00001f30| 69 6f 6e 20 6f 66 20 6d | 6f 75 6e 74 20 66 6f 72 |ion of m|ount for|
|00001f40| 20 4c 69 6e 75 78 20 69 | 73 20 77 72 69 74 74 65 | Linux i|s writte|
|00001f50| 6e 20 62 79 20 50 65 74 | 65 72 20 4f 72 62 61 65 |n by Pet|er Orbae|
|00001f60| 6b 20 3c 70 6f 65 40 64 | 61 69 6d 69 2e 61 61 75 |k <poe@d|aimi.aau|
|00001f70| 2e 64 6b 3e 0a 61 6e 64 | 20 69 73 20 66 72 65 65 |.dk>.and| is free|
|00001f80| 6c 79 20 64 69 73 74 72 | 69 62 75 74 61 62 6c 65 |ly distr|ibutable|
|00001f90| 20 75 6e 64 65 72 20 74 | 68 65 20 47 4e 55 20 47 | under t|he GNU G|
|00001fa0| 65 6e 65 72 61 6c 20 50 | 75 62 6c 69 63 20 4c 69 |eneral P|ublic Li|
|00001fb0| 63 65 6e 73 65 2e 0a 4c | 61 74 65 72 20 77 61 73 |cense..L|ater was|
|00001fc0| 20 6d 6f 64 69 66 69 65 | 64 20 28 63 75 74 74 65 | modifie|d (cutte|
|00001fd0| 64 20 64 6f 77 6e 20 74 | 6f 20 6f 6e 6c 79 20 75 |d down t|o only u|
|00001fe0| 73 65 72 20 66 69 6c 65 | 73 79 73 74 65 6d 20 6d |ser file|system m|
|00001ff0| 6f 75 6e 74 29 20 62 79 | 0a 52 6f 6d 61 6e 6f 20 |ount) by|.Romano |
|00002000| 47 69 61 6e 6e 65 74 74 | 69 20 3c 72 6f 6d 61 6e |Giannett|i <roman|
|00002010| 6f 40 73 65 6e 73 6f 72 | 65 73 32 2e 66 69 73 2e |o@sensor|es2.fis.|
|00002020| 75 63 6d 2e 65 73 3e 2e | 0a 0a 2e 53 48 20 22 53 |ucm.es>.|...SH "S|
|00002030| 45 45 20 41 4c 53 4f 22 | 0a 75 73 65 72 75 6d 6f |EE ALSO"|.userumo|
|00002040| 75 6e 74 28 31 29 2e 0a | 0a 0a 00 00 00 00 00 00 |unt(1)..|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 75 73 |userflop|py0.2/us|
|00002210| 65 72 75 6d 6f 75 6e 74 | 2e 31 00 00 00 00 00 00 |erumount|.1......|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00002270| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00002280| 20 20 20 31 35 34 34 20 | 20 35 36 30 34 30 33 35 | 1544 | 5604035|
|00002290| 34 33 36 20 20 31 34 36 | 35 37 00 20 30 00 00 00 |436 146|57. 0...|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 2e 54 48 20 55 4d 4f 55 | 4e 54 20 31 20 5c 22 20 |.TH UMOU|NT 1 \" |
|00002410| 2d 2a 2d 20 6e 72 6f 66 | 66 20 2d 2a 2d 0a 2e 53 |-*- nrof|f -*-..S|
|00002420| 48 20 4e 41 4d 45 0a 75 | 73 65 72 75 6d 6f 75 6e |H NAME.u|serumoun|
|00002430| 74 20 5c 2d 20 75 6e 6d | 6f 75 6e 74 20 66 69 6c |t \- unm|ount fil|
|00002440| 65 73 79 73 74 65 6d 73 | 0a 2e 53 48 20 53 59 4e |esystems|..SH SYN|
|00002450| 4f 50 53 49 53 0a 2e 42 | 20 75 73 65 72 75 6d 6f |OPSIS..B| userumo|
|00002460| 75 6e 74 0a 5b 2d 76 5d | 0a 2e 49 52 20 64 65 76 |unt.[-v]|..IR dev|
|00002470| 20 7c 20 64 69 72 0a 0a | 2e 53 48 20 44 45 53 43 | | dir..|.SH DESC|
|00002480| 52 49 50 54 49 4f 4e 0a | 54 68 69 73 20 6d 61 6e |RIPTION.|This man|
|00002490| 75 61 6c 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |ual desc|ribes th|
|000024a0| 65 20 0a 2e 42 20 75 73 | 65 72 75 6d 6f 75 6e 74 |e ..B us|erumount|
|000024b0| 0a 63 6f 6d 6d 61 6e 64 | 2e 20 0a 2e 42 20 55 6d |.command|. ..B Um|
|000024c0| 6f 75 6e 74 0a 75 6e 6d | 6f 75 6e 74 73 20 66 69 |ount.unm|ounts fi|
|000024d0| 6c 65 73 79 73 74 65 6d | 73 2e 0a 0a 57 68 65 6e |lesystem|s...When|
|000024e0| 20 69 6e 76 6f 63 61 74 | 65 64 2c 0a 2e 42 20 75 | invocat|ed,..B u|
|000024f0| 73 65 72 6d 6f 75 6e 74 | 0a 75 6e 6d 6f 75 6e 74 |sermount|.unmount|
|00002500| 73 20 0a 0a 74 68 65 20 | 6d 6f 75 6e 74 70 6f 69 |s ..the |mountpoi|
|00002510| 6e 74 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |nt corre|sponding|
|00002520| 20 74 6f 0a 2e 49 20 64 | 65 76 0a 6f 72 0a 2e 49 | to..I d|ev.or..I|
|00002530| 20 64 69 72 0a 49 66 20 | 6f 6e 6c 79 20 0a 2e 49 | dir.If |only ..I|
|00002540| 20 64 69 72 0a 69 73 20 | 67 69 76 65 6e 2c 20 74 | dir.is |given, t|
|00002550| 68 65 6e 20 0a 2e 42 20 | 75 6d 6f 75 6e 74 0a 6c |hen ..B |umount.l|
|00002560| 6f 6f 6b 73 20 69 6e 20 | 2f 65 74 63 2f 75 66 73 |ooks in |/etc/ufs|
|00002570| 74 61 62 2c 20 66 6f 72 | 20 74 68 65 0a 64 65 76 |tab, for| the.dev|
|00002580| 69 63 65 20 6d 61 74 63 | 68 69 6e 67 20 74 68 65 |ice matc|hing the|
|00002590| 20 64 69 72 65 63 74 6f | 72 79 2e 20 54 68 65 20 | directo|ry. The |
|000025a0| 75 6e 6d 6f 75 6e 74 20 | 69 73 20 64 6f 6e 65 20 |unmount |is done |
|000025b0| 69 66 20 61 6e 64 20 6f | 6e 6c 79 20 69 66 20 69 |if and o|nly if i|
|000025c0| 6e 0a 74 68 65 20 2f 65 | 74 63 2f 75 66 73 74 61 |n.the /e|tc/ufsta|
|000025d0| 62 20 74 68 65 72 65 20 | 69 73 20 61 20 6d 61 74 |b there |is a mat|
|000025e0| 63 68 69 6e 67 20 65 6e | 74 72 79 2e 0a 0a 2e 53 |ching en|try....S|
|000025f0| 53 20 4f 50 54 49 4f 4e | 53 0a 2e 54 50 0a 5c 2d |S OPTION|S..TP.\-|
|00002600| 76 0a 56 65 72 62 6f 73 | 65 2e 0a 0a 2e 53 48 20 |v.Verbos|e....SH |
|00002610| 46 49 4c 45 53 0a 2e 52 | 53 0a 2f 65 74 63 2f 75 |FILES..R|S./etc/u|
|00002620| 66 73 74 61 62 0a 2e 62 | 72 0a 2f 65 74 63 2f 6d |fstab..b|r./etc/m|
|00002630| 74 61 62 0a 2e 62 72 0a | 2f 65 74 63 2f 6d 74 61 |tab..br.|/etc/mta|
|00002640| 62 7e 0a 2e 52 45 0a 2e | 53 48 20 41 55 54 48 4f |b~..RE..|SH AUTHO|
|00002650| 52 0a 54 68 69 73 20 76 | 65 72 73 69 6f 6e 20 6f |R.This v|ersion o|
|00002660| 66 20 75 6d 6f 75 6e 74 | 20 66 6f 72 20 4c 69 6e |f umount| for Lin|
|00002670| 75 78 20 69 73 20 77 72 | 69 74 74 65 6e 20 62 79 |ux is wr|itten by|
|00002680| 20 50 65 74 65 72 20 4f | 72 62 61 65 6b 20 3c 70 | Peter O|rbaek <p|
|00002690| 6f 65 40 64 61 69 6d 69 | 2e 61 61 75 2e 64 6b 3e |oe@daimi|.aau.dk>|
|000026a0| 0a 61 6e 64 20 69 73 20 | 66 72 65 65 6c 79 20 64 |.and is |freely d|
|000026b0| 69 73 74 72 69 62 75 74 | 61 62 6c 65 20 75 6e 64 |istribut|able und|
|000026c0| 65 72 20 74 68 65 20 47 | 4e 55 20 47 65 6e 65 72 |er the G|NU Gener|
|000026d0| 61 6c 20 50 75 62 6c 69 | 63 0a 4c 69 63 65 6e 73 |al Publi|c.Licens|
|000026e0| 65 2e 20 4c 61 74 65 72 | 20 6d 6f 64 69 66 69 65 |e. Later| modifie|
|000026f0| 64 20 28 63 75 74 20 64 | 6f 77 6e 20 74 6f 20 6f |d (cut d|own to o|
|00002700| 6e 6c 75 79 20 75 73 65 | 72 75 6d 6f 75 6e 74 29 |nluy use|rumount)|
|00002710| 20 62 79 20 52 6f 6d 61 | 6e 6f 0a 47 69 61 6e 6e | by Roma|no.Giann|
|00002720| 65 74 74 69 20 3c 72 6f | 6d 61 6e 6f 40 73 65 6e |etti <ro|mano@sen|
|00002730| 73 6f 72 65 73 32 2e 66 | 69 73 2e 75 63 6d 2e 65 |sores2.f|is.ucm.e|
|00002740| 73 3e 2e 0a 0a 0a 2e 53 | 48 20 22 53 45 45 20 41 |s>.....S|H "SEE A|
|00002750| 4c 53 4f 22 0a 75 73 65 | 72 6d 6f 75 6e 74 28 31 |LSO".use|rmount(1|
|00002760| 29 2e 0a 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |).......|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 75 66 |userflop|py0.2/uf|
|00002810| 73 74 61 62 00 00 00 00 | 00 00 00 00 00 00 00 00 |stab....|........|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00002870| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00002880| 20 20 20 20 32 32 36 20 | 20 35 36 30 34 30 33 36 | 226 | 5604036|
|00002890| 36 30 31 20 20 31 33 35 | 32 35 00 20 30 00 00 00 |601 135|25. 0...|
|000028a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00002930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 2f 64 65 76 2f 66 64 30 | 20 20 20 20 20 20 20 2f |/dev/fd0| /|
|00002a10| 66 6c 6f 70 70 79 20 20 | 20 20 6d 73 64 6f 73 20 |floppy | msdos |
|00002a20| 09 72 77 0a 2f 64 65 76 | 2f 66 64 30 20 20 20 20 |.rw./dev|/fd0 |
|00002a30| 20 20 20 2f 66 6c 6f 70 | 70 79 20 20 20 20 65 78 | /flop|py ex|
|00002a40| 74 32 20 20 20 09 72 77 | 0a 2f 64 65 76 2f 66 64 |t2 .rw|./dev/fd|
|00002a50| 30 20 20 20 20 20 20 20 | 2f 66 6c 6f 70 70 79 20 |0 |/floppy |
|00002a60| 20 20 20 6d 69 6e 69 78 | 20 20 09 72 77 0a 2f 64 | minix| .rw./d|
|00002a70| 65 76 2f 66 64 30 20 20 | 20 20 20 20 20 2f 66 6c |ev/fd0 | /fl|
|00002a80| 6f 70 70 79 20 20 20 20 | 75 6d 73 64 6f 73 20 20 |oppy |umsdos |
|00002a90| 20 09 72 77 0a 0a 00 00 | 00 00 00 00 00 00 00 00 | .rw....|........|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 75 73 |userflop|py0.2/us|
|00002c10| 65 72 75 6d 6f 75 6e 74 | 2e 63 00 00 00 00 00 00 |erumount|.c......|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00002c70| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00002c80| 20 20 20 37 37 34 37 20 | 20 35 36 30 34 35 32 31 | 7747 | 5604521|
|00002c90| 36 30 33 20 20 31 34 37 | 35 30 00 20 30 00 00 00 |603 147|50. 0...|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 2f 2a 20 0a 20 20 20 20 | 75 6d 6f 75 6e 74 2e 63 |/* . |umount.c|
|00002e10| 20 2d 20 62 79 20 50 65 | 74 65 72 20 4f 72 62 61 | - by Pe|ter Orba|
|00002e20| 65 6b 20 3c 70 6f 65 40 | 64 61 69 6d 69 2e 61 61 |ek <poe@|daimi.aa|
|00002e30| 75 2e 64 6b 3e 20 0a 0a | 20 20 20 20 43 6f 70 79 |u.dk> ..| Copy|
|00002e40| 72 69 67 68 74 20 28 43 | 29 20 31 39 39 32 2c 39 |right (C|) 1992,9|
|00002e50| 33 20 50 65 74 65 72 20 | 4f 72 62 61 65 6b 2e 0a |3 Peter |Orbaek..|
|00002e60| 0a 20 20 20 20 54 68 69 | 73 20 70 72 6f 67 72 61 |. Thi|s progra|
|00002e70| 6d 20 69 73 20 66 72 65 | 65 20 73 6f 66 74 77 61 |m is fre|e softwa|
|00002e80| 72 65 3b 20 79 6f 75 20 | 63 61 6e 20 72 65 64 69 |re; you |can redi|
|00002e90| 73 74 72 69 62 75 74 65 | 20 69 74 20 61 6e 64 2f |stribute| it and/|
|00002ea0| 6f 72 20 6d 6f 64 69 66 | 79 0a 20 20 20 20 69 74 |or modif|y. it|
|00002eb0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|00002ec0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|00002ed0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00002ee0| 73 65 20 61 73 20 70 75 | 62 6c 69 73 68 65 64 20 |se as pu|blished |
|00002ef0| 62 79 0a 20 20 20 20 74 | 68 65 20 46 72 65 65 20 |by. t|he Free |
|00002f00| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|00002f10| 69 6f 6e 3b 20 65 69 74 | 68 65 72 20 76 65 72 73 |ion; eit|her vers|
|00002f20| 69 6f 6e 20 32 20 6f 66 | 20 74 68 65 20 4c 69 63 |ion 2 of| the Lic|
|00002f30| 65 6e 73 65 2c 20 6f 72 | 0a 20 20 20 20 28 61 74 |ense, or|. (at|
|00002f40| 20 79 6f 75 72 20 6f 70 | 74 69 6f 6e 29 20 61 6e | your op|tion) an|
|00002f50| 79 20 6c 61 74 65 72 20 | 76 65 72 73 69 6f 6e 2e |y later |version.|
|00002f60| 0a 0a 20 20 20 20 54 68 | 69 73 20 70 72 6f 67 72 |.. Th|is progr|
|00002f70| 61 6d 20 69 73 20 64 69 | 73 74 72 69 62 75 74 65 |am is di|stribute|
|00002f80| 64 20 69 6e 20 74 68 65 | 20 68 6f 70 65 20 74 68 |d in the| hope th|
|00002f90| 61 74 20 69 74 20 77 69 | 6c 6c 20 62 65 20 75 73 |at it wi|ll be us|
|00002fa0| 65 66 75 6c 2c 0a 20 20 | 20 20 62 75 74 20 57 49 |eful,. | but WI|
|00002fb0| 54 48 4f 55 54 20 41 4e | 59 20 57 41 52 52 41 4e |THOUT AN|Y WARRAN|
|00002fc0| 54 59 3b 20 77 69 74 68 | 6f 75 74 20 65 76 65 6e |TY; with|out even|
|00002fd0| 20 74 68 65 20 69 6d 70 | 6c 69 65 64 20 77 61 72 | the imp|lied war|
|00002fe0| 72 61 6e 74 79 20 6f 66 | 0a 20 20 20 20 4d 45 52 |ranty of|. MER|
|00002ff0| 43 48 41 4e 54 41 42 49 | 4c 49 54 59 20 6f 72 20 |CHANTABI|LITY or |
|00003000| 46 49 54 4e 45 53 53 20 | 46 4f 52 20 41 20 50 41 |FITNESS |FOR A PA|
|00003010| 52 54 49 43 55 4c 41 52 | 20 50 55 52 50 4f 53 45 |RTICULAR| PURPOSE|
|00003020| 2e 20 20 53 65 65 20 74 | 68 65 0a 20 20 20 20 47 |. See t|he. G|
|00003030| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00003040| 63 20 4c 69 63 65 6e 73 | 65 20 66 6f 72 20 6d 6f |c Licens|e for mo|
|00003050| 72 65 20 64 65 74 61 69 | 6c 73 2e 0a 0a 20 20 20 |re detai|ls... |
|00003060| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 68 61 76 65 | You sho|uld have|
|00003070| 20 72 65 63 65 69 76 65 | 64 20 61 20 63 6f 70 79 | receive|d a copy|
|00003080| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|00003090| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|000030a0| 73 65 0a 20 20 20 20 61 | 6c 6f 6e 67 20 77 69 74 |se. a|long wit|
|000030b0| 68 20 74 68 69 73 20 70 | 72 6f 67 72 61 6d 3b 20 |h this p|rogram; |
|000030c0| 69 66 20 6e 6f 74 2c 20 | 77 72 69 74 65 20 74 6f |if not, |write to|
|000030d0| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|000030e0| 72 65 0a 20 20 20 20 46 | 6f 75 6e 64 61 74 69 6f |re. F|oundatio|
|000030f0| 6e 2c 20 49 6e 63 2e 2c | 20 36 37 35 20 4d 61 73 |n, Inc.,| 675 Mas|
|00003100| 73 20 41 76 65 2c 20 43 | 61 6d 62 72 69 64 67 65 |s Ave, C|ambridge|
|00003110| 2c 20 4d 41 20 30 32 31 | 33 39 2c 20 55 53 41 2e |, MA 021|39, USA.|
|00003120| 0a 2a 2f 0a 0a 0a 23 64 | 65 66 69 6e 65 20 5f 50 |.*/...#d|efine _P|
|00003130| 4f 53 49 58 5f 53 4f 55 | 52 43 45 20 31 0a 23 69 |OSIX_SOU|RCE 1.#i|
|00003140| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|00003150| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 6d 6e 74 65 6e |.#includ|e <mnten|
|00003160| 74 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 75 |t.h>.#in|clude <u|
|00003170| 6e 69 73 74 64 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |nistd.h>|.#includ|
|00003180| 65 20 3c 66 63 6e 74 6c | 2e 68 3e 0a 23 69 6e 63 |e <fcntl|.h>.#inc|
|00003190| 6c 75 64 65 20 3c 73 74 | 72 69 6e 67 2e 68 3e 0a |lude <st|ring.h>.|
|000031a0| 23 69 6e 63 6c 75 64 65 | 20 3c 65 72 72 6e 6f 2e |#include| <errno.|
|000031b0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 67 65 74 |h>.#incl|ude <get|
|000031c0| 6f 70 74 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |opt.h>.#|include |
|000031d0| 3c 73 79 73 2f 6d 6f 75 | 6e 74 2e 68 3e 0a 23 69 |<sys/mou|nt.h>.#i|
|000031e0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 79 70 65 |nclude <|sys/type|
|000031f0| 73 2e 68 3e 0a 0a 23 64 | 65 66 69 6e 65 20 4d 54 |s.h>..#d|efine MT|
|00003200| 41 42 5f 46 49 4c 45 20 | 4d 4f 55 4e 54 45 44 0a |AB_FILE |MOUNTED.|
|00003210| 23 64 65 66 69 6e 65 20 | 4c 4f 43 4b 5f 46 49 4c |#define |LOCK_FIL|
|00003220| 45 20 22 2f 65 74 63 2f | 6d 74 61 62 7e 22 0a 23 |E "/etc/|mtab~".#|
|00003230| 64 65 66 69 6e 65 20 55 | 46 53 54 41 42 20 20 20 |define U|FSTAB |
|00003240| 20 22 2f 65 74 63 2f 75 | 66 73 74 61 62 22 0a 0a | "/etc/u|fstab"..|
|00003250| 69 6e 74 20 6f 70 74 5f | 61 6c 6c 20 20 20 20 20 |int opt_|all |
|00003260| 20 20 20 20 20 3d 20 30 | 3b 0a 69 6e 74 20 6f 70 | = 0|;.int op|
|00003270| 74 5f 76 65 72 62 6f 73 | 65 20 20 20 20 20 20 3d |t_verbos|e =|
|00003280| 20 30 3b 0a 69 6e 74 20 | 6f 70 74 5f 75 73 65 72 | 0;.int |opt_user|
|00003290| 6d 6f 75 6e 74 20 20 20 | 20 3d 20 30 3b 0a 0a 63 |mount | = 0;..c|
|000032a0| 68 61 72 20 6d 6e 74 74 | 79 70 65 5b 32 30 30 5d |har mntt|ype[200]|
|000032b0| 20 3d 20 22 22 3b 0a 63 | 68 61 72 20 2a 6d 6e 74 | = "";.c|har *mnt|
|000032c0| 64 65 76 3b 0a 0a 76 6f | 69 64 20 75 73 61 67 65 |dev;..vo|id usage|
|000032d0| 28 29 2c 20 65 72 72 28 | 63 68 61 72 20 2a 29 3b |(), err(|char *);|
|000032e0| 0a 76 6f 69 64 20 6c 6f | 63 6b 5f 6d 74 61 62 28 |.void lo|ck_mtab(|
|000032f0| 29 3b 0a 69 6e 74 20 64 | 6f 5f 75 6d 6f 75 6e 74 |);.int d|o_umount|
|00003300| 28 73 74 72 75 63 74 20 | 6d 6e 74 65 6e 74 20 2a |(struct |mntent *|
|00003310| 29 3b 0a 0a 76 6f 69 64 | 20 75 73 61 67 65 28 29 |);..void| usage()|
|00003320| 0a 7b 0a 20 20 20 20 66 | 70 72 69 6e 74 66 28 73 |.{. f|printf(s|
|00003330| 74 64 65 72 72 2c 0a 09 | 20 20 20 20 22 55 73 61 |tderr,..| "Usa|
|00003340| 67 65 3a 20 75 73 65 72 | 75 6d 6f 75 6e 74 20 5b |ge: user|umount [|
|00003350| 2d 76 5d 20 64 65 76 7c | 64 69 72 5c 6e 22 29 3b |-v] dev||dir\n");|
|00003360| 0a 20 20 20 20 65 78 69 | 74 28 31 29 3b 0a 7d 0a |. exi|t(1);.}.|
|00003370| 0a 69 6e 74 20 6d 61 69 | 6e 28 69 6e 74 20 61 72 |.int mai|n(int ar|
|00003380| 67 63 2c 20 63 68 61 72 | 20 2a 61 72 67 76 5b 5d |gc, char| *argv[]|
|00003390| 29 0a 7b 0a 20 20 20 20 | 63 68 61 72 20 63 3b 0a |).{. |char c;.|
|000033a0| 20 20 20 20 46 49 4c 45 | 20 2a 6d 74 61 62 2c 20 | FILE| *mtab, |
|000033b0| 2a 6e 65 77 6d 74 61 62 | 3b 0a 20 20 20 20 73 74 |*newmtab|;. st|
|000033c0| 72 75 63 74 20 6d 6e 74 | 65 6e 74 20 2a 6d 70 3b |ruct mnt|ent *mp;|
|000033d0| 0a 20 20 20 20 73 74 72 | 75 63 74 20 6d 6e 74 65 |. str|uct mnte|
|000033e0| 6e 74 20 6d 6e 74 3b 0a | 0a 20 20 20 20 69 6e 74 |nt mnt;.|. int|
|000033f0| 20 66 6c 61 67 3b 0a 0a | 20 20 20 20 77 68 69 6c | flag;..| whil|
|00003400| 65 28 28 63 20 3d 20 67 | 65 74 6f 70 74 28 61 72 |e((c = g|etopt(ar|
|00003410| 67 63 2c 20 61 72 67 76 | 2c 20 22 76 22 29 29 20 |gc, argv|, "v")) |
|00003420| 21 3d 20 45 4f 46 29 20 | 7b 0a 09 73 77 69 74 63 |!= EOF) |{..switc|
|00003430| 68 28 63 29 20 7b 0a 09 | 20 20 63 61 73 65 20 27 |h(c) {..| case '|
|00003440| 76 27 3a 0a 09 20 20 20 | 20 6f 70 74 5f 76 65 72 |v':.. | opt_ver|
|00003450| 62 6f 73 65 20 3d 20 31 | 3b 0a 09 20 20 20 20 62 |bose = 1|;.. b|
|00003460| 72 65 61 6b 3b 0a 09 20 | 20 64 65 66 61 75 6c 74 |reak;.. | default|
|00003470| 3a 0a 09 20 20 20 20 75 | 73 61 67 65 28 29 3b 0a |:.. u|sage();.|
|00003480| 09 20 20 20 20 62 72 65 | 61 6b 3b 0a 09 7d 0a 20 |. bre|ak;..}. |
|00003490| 20 20 20 7d 0a 20 20 20 | 20 69 66 28 6f 70 74 69 | }. | if(opti|
|000034a0| 6e 64 20 3c 20 61 72 67 | 63 29 20 6d 6e 74 64 65 |nd < arg|c) mntde|
|000034b0| 76 20 3d 20 61 72 67 76 | 5b 6f 70 74 69 6e 64 2b |v = argv|[optind+|
|000034c0| 2b 5d 3b 0a 20 20 20 20 | 69 66 28 6f 70 74 69 6e |+];. |if(optin|
|000034d0| 64 20 3c 20 61 72 67 63 | 29 20 75 73 61 67 65 28 |d < argc|) usage(|
|000034e0| 29 3b 0a 0a 20 20 20 20 | 69 66 28 28 21 6f 70 74 |);.. |if((!opt|
|000034f0| 5f 61 6c 6c 20 26 26 20 | 21 6d 6e 74 64 65 76 29 |_all && |!mntdev)|
|00003500| 20 7c 7c 20 28 6f 70 74 | 5f 61 6c 6c 20 26 26 20 | || (opt|_all && |
|00003510| 6d 6e 74 64 65 76 29 29 | 20 75 73 61 67 65 28 29 |mntdev))| usage()|
|00003520| 3b 0a 0a 20 20 20 20 6f | 70 74 5f 75 73 65 72 6d |;.. o|pt_userm|
|00003530| 6f 75 6e 74 20 3d 20 31 | 3b 20 2f 2a 20 52 47 74 |ount = 1|; /* RGt|
|00003540| 74 69 20 3a 20 6f 6e 6c | 79 20 75 73 65 72 20 2a |ti : onl|y user *|
|00003550| 2f 0a 0a 20 20 20 20 69 | 66 28 67 65 74 65 75 69 |/.. i|f(geteui|
|00003560| 64 28 29 29 20 7b 0a 09 | 66 70 72 69 6e 74 66 28 |d()) {..|fprintf(|
|00003570| 73 74 64 65 72 72 2c 20 | 22 75 73 65 72 75 6d 6f |stderr, |"userumo|
|00003580| 75 6e 74 3a 20 49 20 68 | 61 76 65 20 74 6f 20 62 |unt: I h|ave to b|
|00003590| 65 20 69 6e 73 74 61 6c | 6c 65 64 20 73 65 74 75 |e instal|led setu|
|000035a0| 69 64 20 72 6f 6f 74 21 | 2e 5c 6e 22 29 3b 0a 09 |id root!|.\n");..|
|000035b0| 65 78 69 74 28 31 29 3b | 0a 20 20 20 20 7d 0a 0a |exit(1);|. }..|
|000035c0| 20 20 20 20 69 66 28 6f | 70 74 5f 75 73 65 72 6d | if(o|pt_userm|
|000035d0| 6f 75 6e 74 29 20 7b 0a | 09 2f 2a 20 73 63 61 6e |ount) {.|./* scan|
|000035e0| 20 75 66 73 74 61 62 20 | 66 6f 72 20 66 69 6c 65 | ufstab |for file|
|000035f0| 73 79 73 74 65 6d 73 20 | 74 68 61 74 20 6f 72 64 |systems |that ord|
|00003600| 69 6e 61 72 79 20 75 73 | 65 72 73 20 63 61 6e 20 |inary us|ers can |
|00003610| 75 6d 6f 75 6e 74 20 2a | 2f 0a 09 66 6c 61 67 20 |umount *|/..flag |
|00003620| 3d 20 30 3b 0a 09 69 66 | 28 21 28 6d 74 61 62 20 |= 0;..if|(!(mtab |
|00003630| 3d 20 73 65 74 6d 6e 74 | 65 6e 74 28 55 46 53 54 |= setmnt|ent(UFST|
|00003640| 41 42 2c 20 22 72 22 29 | 29 29 20 65 72 72 28 55 |AB, "r")|)) err(U|
|00003650| 46 53 54 41 42 29 3b 0a | 09 77 68 69 6c 65 28 28 |FSTAB);.|.while((|
|00003660| 6d 70 20 3d 20 67 65 74 | 6d 6e 74 65 6e 74 28 6d |mp = get|mntent(m|
|00003670| 74 61 62 29 29 29 20 7b | 0a 09 20 20 20 20 69 66 |tab))) {|.. if|
|00003680| 28 21 73 74 72 63 6d 70 | 28 6d 6e 74 64 65 76 2c |(!strcmp|(mntdev,|
|00003690| 20 6d 70 2d 3e 6d 6e 74 | 5f 66 73 6e 61 6d 65 29 | mp->mnt|_fsname)|
|000036a0| 0a 09 20 20 20 20 20 20 | 20 7c 7c 20 21 73 74 72 |.. | || !str|
|000036b0| 63 6d 70 28 6d 6e 74 64 | 65 76 2c 20 6d 70 2d 3e |cmp(mntd|ev, mp->|
|000036c0| 6d 6e 74 5f 64 69 72 29 | 29 20 7b 0a 09 09 66 6c |mnt_dir)|) {...fl|
|000036d0| 61 67 20 3d 20 31 3b 0a | 09 09 62 72 65 61 6b 3b |ag = 1;.|..break;|
|000036e0| 0a 09 20 20 20 20 7d 0a | 09 7d 0a 09 65 6e 64 6d |.. }.|.}..endm|
|000036f0| 6e 74 65 6e 74 28 6d 74 | 61 62 29 3b 0a 0a 09 69 |ntent(mt|ab);...i|
|00003700| 66 28 21 66 6c 61 67 29 | 20 7b 0a 09 20 20 20 20 |f(!flag)| {.. |
|00003710| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00003720| 22 75 73 65 72 75 6d 6f | 75 6e 74 3a 20 25 73 20 |"userumo|unt: %s |
|00003730| 69 73 6e 27 74 20 75 73 | 65 72 2d 75 6e 6d 6f 75 |isn't us|er-unmou|
|00003740| 6e 74 61 62 6c 65 5c 6e | 22 2c 20 6d 6e 74 64 65 |ntable\n|", mntde|
|00003750| 76 29 3b 0a 09 20 20 20 | 20 65 78 69 74 28 31 29 |v);.. | exit(1)|
|00003760| 3b 0a 09 7d 0a 20 20 20 | 20 7d 0a 0a 20 20 20 20 |;..}. | }.. |
|00003770| 69 66 28 21 28 6e 65 77 | 6d 74 61 62 20 3d 20 66 |if(!(new|mtab = f|
|00003780| 64 6f 70 65 6e 28 6f 70 | 65 6e 28 4c 4f 43 4b 5f |dopen(op|en(LOCK_|
|00003790| 46 49 4c 45 2c 20 4f 5f | 57 52 4f 4e 4c 59 7c 4f |FILE, O_|WRONLY|O|
|000037a0| 5f 43 52 45 41 54 7c 4f | 5f 45 58 43 4c 2c 20 30 |_CREAT|O|_EXCL, 0|
|000037b0| 36 36 36 29 2c 20 22 77 | 22 29 29 29 20 7b 0a 09 |666), "w|"))) {..|
|000037c0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|000037d0| 22 75 73 65 72 6d 6f 75 | 6e 74 3a 20 41 20 6c 6f |"usermou|nt: A lo|
|000037e0| 63 6b 66 69 6c 65 20 65 | 78 69 73 74 73 2c 20 75 |ckfile e|xists, u|
|000037f0| 6e 6d 6f 75 6e 74 20 64 | 65 6e 69 65 64 5c 6e 22 |nmount d|enied\n"|
|00003800| 29 3b 0a 09 65 78 69 74 | 28 31 29 3b 0a 20 20 20 |);..exit|(1);. |
|00003810| 20 7d 0a 20 20 20 20 69 | 66 28 21 28 6d 74 61 62 | }. i|f(!(mtab|
|00003820| 20 3d 20 73 65 74 6d 6e | 74 65 6e 74 28 4d 54 41 | = setmn|tent(MTA|
|00003830| 42 5f 46 49 4c 45 2c 20 | 22 72 22 29 29 29 20 65 |B_FILE, |"r"))) e|
|00003840| 72 72 28 4d 54 41 42 5f | 46 49 4c 45 29 3b 0a 0a |rr(MTAB_|FILE);..|
|00003850| 20 20 20 20 20 0a 20 20 | 20 20 66 6c 61 67 20 3d | . | flag =|
|00003860| 20 30 3b 0a 20 20 20 20 | 77 68 69 6c 65 28 28 6d | 0;. |while((m|
|00003870| 70 20 3d 20 67 65 74 6d | 6e 74 65 6e 74 28 6d 74 |p = getm|ntent(mt|
|00003880| 61 62 29 29 29 20 7b 0a | 20 20 20 20 20 20 69 66 |ab))) {.| if|
|00003890| 28 21 6d 70 2d 3e 6d 6e | 74 5f 6f 70 74 73 20 7c |(!mp->mn|t_opts ||
|000038a0| 7c 20 21 6d 70 2d 3e 6d | 6e 74 5f 6f 70 74 73 5b || !mp->m|nt_opts[|
|000038b0| 30 5d 29 20 6d 70 2d 3e | 6d 6e 74 5f 6f 70 74 73 |0]) mp->|mnt_opts|
|000038c0| 20 3d 20 22 64 65 66 61 | 75 6c 74 73 22 3b 0a 20 | = "defa|ults";. |
|000038d0| 20 20 20 20 20 69 66 28 | 21 73 74 72 63 6d 70 28 | if(|!strcmp(|
|000038e0| 6d 6e 74 64 65 76 2c 20 | 6d 70 2d 3e 6d 6e 74 5f |mntdev, |mp->mnt_|
|000038f0| 66 73 6e 61 6d 65 29 0a | 09 20 7c 7c 20 21 73 74 |fsname).|. || !st|
|00003900| 72 63 6d 70 28 6d 6e 74 | 64 65 76 2c 20 6d 70 2d |rcmp(mnt|dev, mp-|
|00003910| 3e 6d 6e 74 5f 64 69 72 | 29 29 20 7b 0a 09 66 6c |>mnt_dir|)) {..fl|
|00003920| 61 67 20 3d 20 31 3b 0a | 09 69 66 28 64 6f 5f 75 |ag = 1;.|.if(do_u|
|00003930| 6d 6f 75 6e 74 28 6d 70 | 29 20 3c 20 30 29 20 7b |mount(mp|) < 0) {|
|00003940| 0a 09 20 20 61 64 64 6d | 6e 74 65 6e 74 28 6e 65 |.. addm|ntent(ne|
|00003950| 77 6d 74 61 62 2c 20 6d | 70 29 3b 0a 09 20 20 66 |wmtab, m|p);.. f|
|00003960| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00003970| 75 73 65 72 75 6d 6f 75 | 6e 74 3a 20 55 6d 6f 75 |userumou|nt: Umou|
|00003980| 6e 74 20 6f 66 20 25 73 | 20 66 61 69 6c 65 64 5c |nt of %s| failed\|
|00003990| 6e 22 2c 0a 09 09 20 20 | 6d 70 2d 3e 6d 6e 74 5f |n",... |mp->mnt_|
|000039a0| 66 73 6e 61 6d 65 29 3b | 0a 09 7d 20 65 6c 73 65 |fsname);|..} else|
|000039b0| 20 7b 0a 09 20 20 2f 2a | 20 72 65 73 65 74 20 6f | {.. /*| reset o|
|000039c0| 77 6e 65 72 73 68 69 70 | 20 2a 2f 0a 09 20 20 63 |wnership| */.. c|
|000039d0| 68 6f 77 6e 28 6d 70 2d | 3e 6d 6e 74 5f 64 69 72 |hown(mp-|>mnt_dir|
|000039e0| 2c 30 2c 30 29 3b 0a 09 | 7d 0a 20 20 20 20 20 20 |,0,0);..|}. |
|000039f0| 7d 20 65 6c 73 65 20 61 | 64 64 6d 6e 74 65 6e 74 |} else a|ddmntent|
|00003a00| 28 6e 65 77 6d 74 61 62 | 2c 20 6d 70 29 3b 0a 20 |(newmtab|, mp);. |
|00003a10| 20 20 20 7d 0a 0a 20 20 | 20 20 69 66 20 28 66 6c | }.. | if (fl|
|00003a20| 61 67 3d 3d 30 29 20 7b | 20 2f 2a 20 48 6d 6d 6d |ag==0) {| /* Hmmm|
|00003a30| 2e 2e 2e 20 68 65 72 65 | 20 77 65 20 68 61 76 65 |... here| we have|
|00003a40| 20 6e 6f 20 64 65 76 69 | 63 65 20 69 6e 20 6d 74 | no devi|ce in mt|
|00003a50| 61 62 20 62 75 74 20 69 | 74 20 69 73 20 69 6e 0a |ab but i|t is in.|
|00003a60| 09 09 20 20 20 20 20 20 | 2f 65 74 63 2f 75 66 73 |.. |/etc/ufs|
|00003a70| 74 61 62 2e 20 4c 65 74 | 27 73 20 74 72 79 20 74 |tab. Let|'s try t|
|00003a80| 6f 20 75 6d 6f 75 6e 74 | 20 69 74 20 6e 65 76 65 |o umount| it neve|
|00003a90| 72 74 68 6c 65 73 73 20 | 2a 2f 0a 20 20 20 20 20 |rthless |*/. |
|00003aa0| 20 6d 6e 74 2e 6d 6e 74 | 5f 74 79 70 65 20 3d 20 | mnt.mnt|_type = |
|00003ab0| 4e 55 4c 4c 3b 0a 20 20 | 20 20 20 20 6d 6e 74 2e |NULL;. | mnt.|
|00003ac0| 6d 6e 74 5f 66 73 6e 61 | 6d 65 20 3d 20 6d 6e 74 |mnt_fsna|me = mnt|
|00003ad0| 64 65 76 3b 0a 20 20 20 | 20 20 20 69 66 28 64 6f |dev;. | if(do|
|00003ae0| 5f 75 6d 6f 75 6e 74 28 | 26 6d 6e 74 29 20 3c 20 |_umount(|&mnt) < |
|00003af0| 30 29 20 7b 0a 09 66 70 | 72 69 6e 74 66 28 73 74 |0) {..fp|rintf(st|
|00003b00| 64 65 72 72 2c 20 22 75 | 73 65 72 6d 6f 75 6e 74 |derr, "u|sermount|
|00003b10| 3a 20 55 6d 6f 75 6e 74 | 20 6f 66 20 25 73 20 66 |: Umount| of %s f|
|00003b20| 61 69 6c 65 64 5c 6e 22 | 2c 20 6d 6e 74 64 65 76 |ailed\n"|, mntdev|
|00003b30| 29 3b 0a 20 20 20 20 20 | 20 7d 0a 20 20 20 20 7d |);. | }. }|
|00003b40| 0a 0a 20 20 20 20 65 6e | 64 6d 6e 74 65 6e 74 28 |.. en|dmntent(|
|00003b50| 6e 65 77 6d 74 61 62 29 | 3b 0a 20 20 20 20 65 6e |newmtab)|;. en|
|00003b60| 64 6d 6e 74 65 6e 74 28 | 6d 74 61 62 29 3b 0a 0a |dmntent(|mtab);..|
|00003b70| 20 20 20 20 75 6e 6c 69 | 6e 6b 28 4d 54 41 42 5f | unli|nk(MTAB_|
|00003b80| 46 49 4c 45 29 3b 0a 20 | 20 20 20 6c 69 6e 6b 28 |FILE);. | link(|
|00003b90| 4c 4f 43 4b 5f 46 49 4c | 45 2c 20 4d 54 41 42 5f |LOCK_FIL|E, MTAB_|
|00003ba0| 46 49 4c 45 29 3b 0a 20 | 20 20 20 75 6e 6c 69 6e |FILE);. | unlin|
|00003bb0| 6b 28 4c 4f 43 4b 5f 46 | 49 4c 45 29 3b 0a 0a 20 |k(LOCK_F|ILE);.. |
|00003bc0| 20 20 20 20 20 20 0a 20 | 20 20 20 65 78 69 74 28 | . | exit(|
|00003bd0| 30 29 3b 0a 20 20 0a 7d | 0a 0a 76 6f 69 64 20 65 |0);. .}|..void e|
|00003be0| 72 72 28 63 68 61 72 20 | 2a 20 73 74 72 29 0a 7b |rr(char |* str).{|
|00003bf0| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 73 74 64 |. fpr|intf(std|
|00003c00| 65 72 72 2c 20 22 75 73 | 65 72 6d 6f 75 6e 74 3a |err, "us|ermount:|
|00003c10| 20 25 73 3a 20 25 73 5c | 6e 22 2c 20 73 74 72 2c | %s: %s\|n", str,|
|00003c20| 20 73 74 72 65 72 72 6f | 72 28 65 72 72 6e 6f 29 | strerro|r(errno)|
|00003c30| 29 3b 0a 20 20 20 20 69 | 66 28 61 63 63 65 73 73 |);. i|f(access|
|00003c40| 28 4c 4f 43 4b 5f 46 49 | 4c 45 2c 20 30 29 20 3d |(LOCK_FI|LE, 0) =|
|00003c50| 3d 20 30 29 20 75 6e 6c | 69 6e 6b 28 4c 4f 43 4b |= 0) unl|ink(LOCK|
|00003c60| 5f 46 49 4c 45 29 3b 0a | 20 20 20 20 65 78 69 74 |_FILE);.| exit|
|00003c70| 28 31 29 3b 0a 7d 0a 0a | 69 6e 74 20 64 6f 5f 75 |(1);.}..|int do_u|
|00003c80| 6d 6f 75 6e 74 28 73 74 | 72 75 63 74 20 6d 6e 74 |mount(st|ruct mnt|
|00003c90| 65 6e 74 20 2a 6d 70 29 | 0a 7b 0a 20 20 20 20 69 |ent *mp)|.{. i|
|00003ca0| 66 28 6d 70 2d 3e 6d 6e | 74 5f 74 79 70 65 20 26 |f(mp->mn|t_type &|
|00003cb0| 26 20 73 74 72 63 6d 70 | 28 6d 70 2d 3e 6d 6e 74 |& strcmp|(mp->mnt|
|00003cc0| 5f 74 79 70 65 2c 20 4d | 4e 54 54 59 50 45 5f 53 |_type, M|NTTYPE_S|
|00003cd0| 57 41 50 29 20 3d 3d 20 | 30 29 20 7b 0a 20 20 20 |WAP) == |0) {. |
|00003ce0| 20 20 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 | fprin|tf(stder|
|00003cf0| 72 2c 20 22 75 73 65 72 | 75 6d 6f 75 6e 74 3a 20 |r, "user|umount: |
|00003d00| 63 61 6e 6e 6f 74 20 73 | 77 61 70 6f 66 66 5c 6e |cannot s|wapoff\n|
|00003d10| 22 29 3b 0a 20 20 20 20 | 20 20 72 65 74 75 72 6e |");. | return|
|00003d20| 20 2d 31 3b 0a 20 20 20 | 20 7d 20 65 6c 73 65 20 | -1;. | } else |
|00003d30| 7b 0a 20 20 20 20 20 20 | 69 66 28 75 6d 6f 75 6e |{. |if(umoun|
|00003d40| 74 28 6d 70 2d 3e 6d 6e | 74 5f 66 73 6e 61 6d 65 |t(mp->mn|t_fsname|
|00003d50| 29 20 3c 20 30 29 20 7b | 0a 09 70 65 72 72 6f 72 |) < 0) {|..perror|
|00003d60| 28 22 75 6d 6f 75 6e 74 | 22 29 3b 0a 09 72 65 74 |("umount|");..ret|
|00003d70| 75 72 6e 20 2d 31 3b 0a | 20 20 20 20 20 20 7d 0a |urn -1;.| }.|
|00003d80| 20 20 20 20 7d 0a 0a 0a | 20 20 20 20 69 66 28 6f | }...| if(o|
|00003d90| 70 74 5f 76 65 72 62 6f | 73 65 29 0a 20 20 20 20 |pt_verbo|se). |
|00003da0| 20 20 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 | fprint|f(stderr|
|00003db0| 2c 20 22 55 6e 6d 6f 75 | 6e 74 65 64 20 25 73 5c |, "Unmou|nted %s\|
|00003dc0| 6e 22 2c 20 6d 70 2d 3e | 6d 6e 74 5f 66 73 6e 61 |n", mp->|mnt_fsna|
|00003dd0| 6d 65 29 3b 0a 0a 20 20 | 20 20 72 65 74 75 72 6e |me);.. | return|
|00003de0| 20 30 3b 0a 7d 0a 0a 00 | 00 00 00 00 00 00 00 00 | 0;.}...|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 52 45 |userflop|py0.2/RE|
|00003e10| 41 44 4d 45 2e 6f 72 69 | 67 00 00 00 00 00 00 00 |ADME.ori|g.......|
|00003e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00003e70| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00003e80| 20 20 20 32 32 30 35 20 | 20 35 36 30 34 30 33 36 | 2205 | 5604036|
|00003e90| 36 32 30 20 20 31 34 31 | 35 35 00 20 30 00 00 00 |620 141|55. 0...|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00003f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 54 68 69 73 20 69 73 20 | 74 68 65 20 52 45 41 44 |This is |the READ|
|00004010| 4d 45 20 66 69 6c 65 20 | 66 6f 72 20 74 68 65 20 |ME file |for the |
|00004020| 75 73 65 72 6d 6f 75 6e | 74 20 70 61 63 6b 61 67 |usermoun|t packag|
|00004030| 65 20 66 6f 72 20 4c 69 | 6e 75 78 0a 44 61 74 65 |e for Li|nux.Date|
|00004040| 3a 20 33 30 2d 4a 75 6c | 2d 39 33 0a 56 65 72 73 |: 30-Jul|-93.Vers|
|00004050| 69 6f 6e 3a 20 30 2e 33 | 0a 41 75 74 68 6f 72 3a |ion: 0.3|.Author:|
|00004060| 20 50 65 74 65 72 20 4f | 72 62 61 65 6b 20 3c 70 | Peter O|rbaek <p|
|00004070| 6f 65 40 64 61 69 6d 69 | 2e 61 61 75 2e 64 6b 3e |oe@daimi|.aau.dk>|
|00004080| 0a 0a 51 75 69 63 6b 20 | 69 6e 73 74 61 6c 6c 61 |..Quick |installa|
|00004090| 74 69 6f 6e 20 67 75 69 | 64 65 0a 3d 3d 3d 3d 3d |tion gui|de.=====|
|000040a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000040b0| 3d 3d 3d 0a 0a 09 6d 61 | 6b 65 0a 0a 49 74 20 62 |===...ma|ke..It b|
|000040c0| 75 69 6c 64 73 20 63 6c | 65 61 6e 6c 79 20 77 69 |uilds cl|eanly wi|
|000040d0| 74 68 20 67 63 63 2d 32 | 2e 33 2e 33 20 61 6e 64 |th gcc-2|.3.3 and|
|000040e0| 20 4c 69 6e 75 78 20 30 | 2e 39 39 2e 38 20 28 6c | Linux 0|.99.8 (l|
|000040f0| 69 62 63 20 34 2e 33 2e | 33 29 0a 0a 41 6e 64 20 |ibc 4.3.|3)..And |
|00004100| 6f 70 74 69 6f 6e 61 6c | 6c 79 20 61 73 20 72 6f |optional|ly as ro|
|00004110| 6f 74 20 28 43 48 45 43 | 4b 20 74 68 65 20 4d 61 |ot (CHEC|K the Ma|
|00004120| 6b 65 66 69 6c 65 20 66 | 69 72 73 74 21 29 3a 0a |kefile f|irst!):.|
|00004130| 0a 09 6d 61 6b 65 20 69 | 6e 73 74 61 6c 6c 2d 6d |..make i|nstall-m|
|00004140| 61 6e 0a 09 6d 61 6b 65 | 20 69 6e 73 74 61 6c 6c |an..make| install|
|00004150| 0a 0a 46 69 6c 65 73 0a | 3d 3d 3d 3d 3d 0a 0a 54 |..Files.|=====..T|
|00004160| 68 69 73 20 70 61 63 6b | 61 67 65 20 69 6e 63 6c |his pack|age incl|
|00004170| 75 64 65 73 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |udes the| followi|
|00004180| 6e 67 20 66 69 6c 65 73 | 3a 0a 0a 4d 61 6b 65 66 |ng files|:..Makef|
|00004190| 69 6c 65 0a 52 45 41 44 | 4d 45 0a 6d 6f 75 6e 74 |ile.READ|ME.mount|
|000041a0| 2e 63 09 09 2d 20 73 6f | 75 72 63 65 20 66 6f 72 |.c..- so|urce for|
|000041b0| 20 6d 6f 75 6e 74 0a 75 | 6d 6f 75 6e 74 2e 63 09 | mount.u|mount.c.|
|000041c0| 2d 20 73 6f 75 72 63 65 | 20 66 6f 72 20 75 6d 6f |- source| for umo|
|000041d0| 75 6e 74 0a 6d 6f 75 6e | 74 2e 38 09 09 2d 20 2a |unt.moun|t.8..- *|
|000041e0| 72 6f 66 66 20 73 6f 75 | 72 63 65 20 66 6f 72 20 |roff sou|rce for |
|000041f0| 6d 61 6e 2d 70 61 67 65 | 20 66 6f 72 20 6d 6f 75 |man-page| for mou|
|00004200| 6e 74 0a 75 6d 6f 75 6e | 74 2e 38 09 2d 20 2a 72 |nt.umoun|t.8.- *r|
|00004210| 6f 66 66 20 73 6f 75 72 | 63 65 20 66 6f 72 20 6d |off sour|ce for m|
|00004220| 61 6e 2d 70 61 67 65 20 | 66 6f 72 20 75 6d 6f 75 |an-page |for umou|
|00004230| 6e 74 0a 66 73 74 61 62 | 09 09 2d 20 65 78 61 6d |nt.fstab|..- exam|
|00004240| 70 6c 65 20 66 73 74 61 | 62 2c 20 69 73 20 6e 6f |ple fsta|b, is no|
|00004250| 74 20 69 6e 73 74 61 6c | 6c 65 64 0a 75 66 73 74 |t instal|led.ufst|
|00004260| 61 62 09 09 2d 20 65 78 | 61 6d 70 6c 65 20 75 66 |ab..- ex|ample uf|
|00004270| 73 74 61 62 2c 20 69 73 | 20 6e 6f 74 20 69 6e 73 |stab, is| not ins|
|00004280| 74 61 6c 6c 65 64 0a 0a | 43 68 61 6e 67 65 73 20 |talled..|Changes |
|00004290| 73 69 6e 63 65 3a 0a 3d | 3d 3d 3d 3d 3d 3d 3d 3d |since:.=|========|
|000042a0| 3d 3d 3d 3d 3d 0a 44 61 | 74 65 3a 20 32 36 2d 41 |=====.Da|te: 26-A|
|000042b0| 70 72 2d 39 33 0a 56 65 | 72 73 69 6f 6e 3a 20 30 |pr-93.Ve|rsion: 0|
|000042c0| 2e 32 0a 0a 09 46 69 78 | 65 64 20 61 20 73 69 6d |.2...Fix|ed a sim|
|000042d0| 70 6c 65 20 62 75 67 20 | 69 6e 20 75 6d 6f 75 6e |ple bug |in umoun|
|000042e0| 74 2e 63 20 74 68 61 74 | 20 0a 09 70 65 67 65 6c |t.c that| ..pegel|
|000042f0| 6f 77 40 6d 6f 6f 72 65 | 61 2e 75 6e 69 2d 6d 75 |ow@moore|a.uni-mu|
|00004300| 65 6e 73 74 65 72 2e 64 | 65 20 28 55 6c 72 69 63 |enster.d|e (Ulric|
|00004310| 68 20 50 65 67 65 6c 6f | 77 29 20 6d 61 64 65 20 |h Pegelo|w) made |
|00004320| 6d 65 0a 09 61 77 61 72 | 65 20 6f 66 2e 0a 0a 44 |me..awar|e of...D|
|00004330| 61 74 65 3a 20 31 35 2d | 44 65 63 2d 39 32 0a 56 |ate: 15-|Dec-92.V|
|00004340| 65 72 73 69 6f 6e 3a 20 | 30 2e 31 0a 0a 09 41 64 |ersion: |0.1...Ad|
|00004350| 64 65 64 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |ded supp|ort for |
|00004360| 73 77 61 70 20 66 69 6c | 65 20 73 70 65 63 20 69 |swap fil|e spec i|
|00004370| 6e 20 66 73 74 61 62 2c | 20 72 65 71 75 65 73 74 |n fstab,| request|
|00004380| 65 64 20 62 79 20 0a 09 | 68 61 72 72 65 6c 6c 40 |ed by ..|harrell@|
|00004390| 72 73 75 61 70 31 2e 6e | 72 6c 2e 6e 61 76 79 2e |rsuap1.n|rl.navy.|
|000043a0| 6d 69 6c 20 28 4d 61 74 | 74 68 65 77 20 48 61 72 |mil (Mat|thew Har|
|000043b0| 72 65 6c 6c 29 0a 0a 09 | 6d 6f 75 6e 74 2f 75 6d |rell)...|mount/um|
|000043c0| 6f 75 6e 74 20 63 61 6e | 20 6e 6f 77 20 62 65 20 |ount can| now be |
|000043d0| 75 73 65 64 20 61 73 20 | 73 77 61 70 6f 6e 2f 73 |used as |swapon/s|
|000043e0| 77 61 70 6f 66 66 20 63 | 6f 6d 6d 61 6e 64 73 20 |wapoff c|ommands |
|000043f0| 6c 69 6b 65 0a 0a 09 09 | 6d 6f 75 6e 74 20 2d 74 |like....|mount -t|
|00004400| 20 73 77 61 70 20 3c 73 | 77 61 70 66 69 6c 65 3e | swap <s|wapfile>|
|00004410| 20 3c 73 77 61 70 66 69 | 6c 65 3e 0a 09 09 75 6d | <swapfi|le>...um|
|00004420| 6f 75 6e 74 20 2d 74 20 | 73 77 61 70 20 3c 73 77 |ount -t |swap <sw|
|00004430| 61 70 66 69 6c 65 3e 0a | 0a 09 6d 6f 75 6e 74 20 |apfile>.|..mount |
|00004440| 64 6f 65 73 20 6e 6f 20 | 6d 6f 72 65 20 63 6f 6d |does no |more com|
|00004450| 70 6c 61 69 6e 20 69 66 | 20 79 6f 75 20 74 72 79 |plain if| you try|
|00004460| 20 74 6f 20 6d 6f 75 6e | 74 20 72 6f 6f 74 2c 20 | to moun|t root, |
|00004470| 69 74 20 6a 75 73 74 0a | 09 69 67 6e 6f 72 65 73 |it just.|.ignores|
|00004480| 20 69 74 2e 0a 00 00 00 | 00 00 00 00 00 00 00 00 | it.....|........|
|00004490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004600| 75 73 65 72 66 6c 6f 70 | 70 79 30 2e 32 2f 75 73 |userflop|py0.2/us|
|00004610| 65 72 6d 6f 75 6e 74 2e | 63 00 00 00 00 00 00 00 |ermount.|c.......|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 34 |....1006|44 . 4|
|00004670| 35 34 20 00 20 20 20 20 | 20 36 20 00 20 20 20 20 |54 . | 6 . |
|00004680| 20 20 32 32 32 36 30 20 | 20 35 36 30 34 30 33 31 | 22260 | 5604031|
|00004690| 31 37 35 20 20 31 34 35 | 36 36 00 20 30 00 00 00 |175 145|66. 0...|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 75 73 74 61 72 20 20 | 00 72 6f 6d 61 6e 6f 00 |.ustar |.romano.|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 2f 2a 20 55 73 65 72 6d | 6f 75 6e 74 2e 63 20 3a |/* Userm|ount.c :|
|00004810| 20 62 75 69 6c 64 20 6f | 76 65 72 20 74 68 65 20 | build o|ver the |
|00004820| 50 65 74 65 72 20 4f 72 | 62 61 65 6b 20 6d 6f 75 |Peter Or|baek mou|
|00004830| 6e 74 2c 20 6a 75 73 74 | 20 6f 6e 6c 79 20 63 75 |nt, just| only cu|
|00004840| 74 74 69 6e 67 20 68 65 | 72 65 20 0a 20 20 20 61 |tting he|re . a|
|00004850| 6e 64 20 74 68 65 72 65 | 20 62 79 20 52 6f 6d 61 |nd there| by Roma|
|00004860| 6e 6f 20 47 69 61 6e 6e | 65 74 74 69 2e 20 49 74 |no Giann|etti. It|
|00004870| 20 70 65 72 6d 69 74 73 | 20 74 6f 20 6e 6f 72 6d | permits| to norm|
|00004880| 61 6c 20 75 73 65 72 73 | 20 6d 6f 75 6e 74 20 64 |al users| mount d|
|00004890| 65 76 69 63 65 73 0a 20 | 20 20 74 68 65 20 73 75 |evices. | the su|
|000048a0| 70 65 72 75 73 65 72 20 | 6c 69 73 74 20 69 6e 20 |peruser |list in |
|000048b0| 2f 65 74 63 2f 75 66 73 | 74 61 62 2e 20 49 74 20 |/etc/ufs|tab. It |
|000048c0| 61 64 6d 69 74 20 6d 75 | 6c 74 69 70 6c 65 20 65 |admit mu|ltiple e|
|000048d0| 6e 74 72 79 20 77 69 74 | 68 20 64 69 66 66 65 72 |ntry wit|h differ|
|000048e0| 65 6e 74 20 0a 20 20 20 | 66 73 2d 74 79 70 65 20 |ent . |fs-type |
|000048f0| 61 6e 64 20 65 71 75 61 | 6c 20 64 65 76 69 63 65 |and equa|l device|
|00004900| 20 61 6e 64 20 64 69 72 | 65 63 74 6f 72 79 20 28 | and dir|ectory (|
|00004910| 73 65 65 20 74 68 65 20 | 65 78 65 6d 70 6c 65 20 |see the |exemple |
|00004920| 66 6f 72 20 2f 66 6c 6f | 70 70 79 29 20 0a 2a 2f |for /flo|ppy) .*/|
|00004930| 0a 0a 2f 2a 20 0a 20 20 | 20 20 6d 6f 75 6e 74 2e |../* . | mount.|
|00004940| 63 20 2d 20 41 20 62 65 | 74 74 65 72 20 6d 6f 75 |c - A be|tter mou|
|00004950| 6e 74 20 63 6f 6d 6d 61 | 6e 64 20 66 6f 72 20 4c |nt comma|nd for L|
|00004960| 69 6e 75 78 20 30 2e 39 | 39 2d 70 61 74 63 68 6c |inux 0.9|9-patchl|
|00004970| 65 76 65 6c 20 38 20 6f | 72 20 6c 61 74 65 72 2e |evel 8 o|r later.|
|00004980| 0a 20 20 20 20 62 79 20 | 50 65 74 65 72 20 4f 72 |. by |Peter Or|
|00004990| 62 61 65 6b 20 3c 70 6f | 65 40 64 61 69 6d 69 2e |baek <po|e@daimi.|
|000049a0| 61 61 75 2e 64 6b 3e 0a | 0a 20 20 20 20 43 6f 70 |aau.dk>.|. Cop|
|000049b0| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 39 32 2c |yright (|C) 1992,|
|000049c0| 39 33 20 50 65 74 65 72 | 20 4f 72 62 61 65 6b 2e |93 Peter| Orbaek.|
|000049d0| 0a 0a 20 20 20 20 54 68 | 69 73 20 70 72 6f 67 72 |.. Th|is progr|
|000049e0| 61 6d 20 69 73 20 66 72 | 65 65 20 73 6f 66 74 77 |am is fr|ee softw|
|000049f0| 61 72 65 3b 20 79 6f 75 | 20 63 61 6e 20 72 65 64 |are; you| can red|
|00004a00| 69 73 74 72 69 62 75 74 | 65 20 69 74 20 61 6e 64 |istribut|e it and|
|00004a10| 2f 6f 72 20 6d 6f 64 69 | 66 79 0a 20 20 20 20 69 |/or modi|fy. i|
|00004a20| 74 20 75 6e 64 65 72 20 | 74 68 65 20 74 65 72 6d |t under |the term|
|00004a30| 73 20 6f 66 20 74 68 65 | 20 47 4e 55 20 47 65 6e |s of the| GNU Gen|
|00004a40| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|00004a50| 6e 73 65 20 61 73 20 70 | 75 62 6c 69 73 68 65 64 |nse as p|ublished|
|00004a60| 20 62 79 0a 20 20 20 20 | 74 68 65 20 46 72 65 65 | by. |the Free|
|00004a70| 20 53 6f 66 74 77 61 72 | 65 20 46 6f 75 6e 64 61 | Softwar|e Founda|
|00004a80| 74 69 6f 6e 3b 20 65 69 | 74 68 65 72 20 76 65 72 |tion; ei|ther ver|
|00004a90| 73 69 6f 6e 20 32 20 6f | 66 20 74 68 65 20 4c 69 |sion 2 o|f the Li|
|00004aa0| 63 65 6e 73 65 2c 20 6f | 72 0a 20 20 20 20 28 61 |cense, o|r. (a|
|00004ab0| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 29 20 61 |t your o|ption) a|
|00004ac0| 6e 79 20 6c 61 74 65 72 | 20 76 65 72 73 69 6f 6e |ny later| version|
|00004ad0| 2e 0a 0a 20 20 20 20 54 | 68 69 73 20 70 72 6f 67 |... T|his prog|
|00004ae0| 72 61 6d 20 69 73 20 64 | 69 73 74 72 69 62 75 74 |ram is d|istribut|
|00004af0| 65 64 20 69 6e 20 74 68 | 65 20 68 6f 70 65 20 74 |ed in th|e hope t|
|00004b00| 68 61 74 20 69 74 20 77 | 69 6c 6c 20 62 65 20 75 |hat it w|ill be u|
|00004b10| 73 65 66 75 6c 2c 0a 20 | 20 20 20 62 75 74 20 57 |seful,. | but W|
|00004b20| 49 54 48 4f 55 54 20 41 | 4e 59 20 57 41 52 52 41 |ITHOUT A|NY WARRA|
|00004b30| 4e 54 59 3b 20 77 69 74 | 68 6f 75 74 20 65 76 65 |NTY; wit|hout eve|
|00004b40| 6e 20 74 68 65 20 69 6d | 70 6c 69 65 64 20 77 61 |n the im|plied wa|
|00004b50| 72 72 61 6e 74 79 20 6f | 66 0a 20 20 20 20 4d 45 |rranty o|f. ME|
|00004b60| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 20 6f 72 |RCHANTAB|ILITY or|
|00004b70| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P|
|00004b80| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|00004b90| 45 2e 20 20 53 65 65 20 | 74 68 65 0a 20 20 20 20 |E. See |the. |
|00004ba0| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00004bb0| 69 63 20 4c 69 63 65 6e | 73 65 20 66 6f 72 20 6d |ic Licen|se for m|
|00004bc0| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0a 0a 20 20 |ore deta|ils... |
|00004bd0| 20 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 68 61 76 | You sh|ould hav|
|00004be0| 65 20 72 65 63 65 69 76 | 65 64 20 61 20 63 6f 70 |e receiv|ed a cop|
|00004bf0| 79 20 6f 66 20 74 68 65 | 20 47 4e 55 20 47 65 6e |y of the| GNU Gen|
|00004c00| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|00004c10| 6e 73 65 0a 20 20 20 20 | 61 6c 6f 6e 67 20 77 69 |nse. |along wi|
|00004c20| 74 68 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 3b |th this |program;|
|00004c30| 20 69 66 20 6e 6f 74 2c | 20 77 72 69 74 65 20 74 | if not,| write t|
|00004c40| 6f 20 74 68 65 20 46 72 | 65 65 20 53 6f 66 74 77 |o the Fr|ee Softw|
|00004c50| 61 72 65 0a 20 20 20 20 | 46 6f 75 6e 64 61 74 69 |are. |Foundati|
|00004c60| 6f 6e 2c 20 49 6e 63 2e | 2c 20 36 37 35 20 4d 61 |on, Inc.|, 675 Ma|
|00004c70| 73 73 20 41 76 65 2c 20 | 43 61 6d 62 72 69 64 67 |ss Ave, |Cambridg|
|00004c80| 65 2c 20 4d 41 20 30 32 | 31 33 39 2c 20 55 53 41 |e, MA 02|139, USA|
|00004c90| 2e 0a 2a 2f 0a 0a 23 64 | 65 66 69 6e 65 20 5f 42 |..*/..#d|efine _B|
|00004ca0| 53 44 5f 53 4f 55 52 43 | 45 0a 23 64 65 66 69 6e |SD_SOURC|E.#defin|
|00004cb0| 65 20 5f 50 4f 53 49 58 | 5f 53 4f 55 52 43 45 0a |e _POSIX|_SOURCE.|
|00004cc0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00004cd0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 65 72 72 |h>.#incl|ude <err|
|00004ce0| 6e 6f 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |no.h>.#i|nclude <|
|00004cf0| 75 6e 69 73 74 64 2e 68 | 3e 0a 23 69 6e 63 6c 75 |unistd.h|>.#inclu|
|00004d00| 64 65 20 3c 66 63 6e 74 | 6c 2e 68 3e 0a 23 69 6e |de <fcnt|l.h>.#in|
|00004d10| 63 6c 75 64 65 20 3c 6d | 6e 74 65 6e 74 2e 68 3e |clude <m|ntent.h>|
|00004d20| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 67 65 74 6f 70 |.#includ|e <getop|
|00004d30| 74 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |t.h>.#in|clude <s|
|00004d40| 74 72 69 6e 67 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |tring.h>|.#includ|
|00004d50| 65 20 3c 65 72 72 6e 6f | 2e 68 3e 0a 23 69 6e 63 |e <errno|.h>.#inc|
|00004d60| 6c 75 64 65 20 3c 73 79 | 73 2f 73 74 61 74 2e 68 |lude <sy|s/stat.h|
|00004d70| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00004d80| 6d 6f 75 6e 74 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |mount.h>|.#includ|
|00004d90| 65 20 3c 73 79 73 2f 74 | 79 70 65 73 2e 68 3e 0a |e <sys/t|ypes.h>.|
|00004da0| 0a 0a 2f 2a 23 64 65 66 | 69 6e 65 20 5f 4c 49 4e |../*#def|ine _LIN|
|00004db0| 55 58 5f 54 59 50 45 53 | 5f 48 2a 2f 0a 23 69 6e |UX_TYPES|_H*/.#in|
|00004dc0| 63 6c 75 64 65 20 3c 6c | 69 6e 75 78 2f 66 73 2e |clude <l|inux/fs.|
|00004dd0| 68 3e 0a 0a 2f 2a 20 74 | 68 65 73 65 20 72 65 61 |h>../* t|hese rea|
|00004de0| 6c 6c 79 20 73 68 6f 75 | 6c 64 20 62 65 20 64 65 |lly shou|ld be de|
|00004df0| 66 69 6e 65 64 20 69 6e | 20 3c 6d 6e 74 65 6e 74 |fined in| <mntent|
|00004e00| 2e 68 3e 2e 20 2a 2f 0a | 23 64 65 66 69 6e 65 20 |.h>. */.|#define |
|00004e10| 4d 4e 54 4f 50 54 5f 4e | 4f 44 45 56 20 20 20 20 |MNTOPT_N|ODEV |
|00004e20| 22 6e 6f 64 65 76 22 0a | 23 64 65 66 69 6e 65 20 |"nodev".|#define |
|00004e30| 4d 4e 54 4f 50 54 5f 4e | 4f 45 58 45 43 20 20 20 |MNTOPT_N|OEXEC |
|00004e40| 22 6e 6f 65 78 65 63 22 | 0a 23 64 65 66 69 6e 65 |"noexec"|.#define|
|00004e50| 20 4d 4e 54 4f 50 54 5f | 53 59 4e 43 20 20 20 20 | MNTOPT_|SYNC |
|00004e60| 20 22 73 79 6e 63 22 0a | 0a 23 69 66 6e 64 65 66 | "sync".|.#ifndef|
|00004e70| 20 5f 5f 53 54 44 43 5f | 5f 0a 23 65 72 72 6f 72 | __STDC_|_.#error|
|00004e80| 20 45 72 72 6f 72 3a 20 | 54 68 69 73 20 70 72 6f | Error: |This pro|
|00004e90| 67 72 61 6d 20 72 65 71 | 75 69 72 65 73 20 41 4e |gram req|uires AN|
|00004ea0| 53 49 20 43 20 74 6f 20 | 63 6f 6d 70 69 6c 65 0a |SI C to |compile.|
|00004eb0| 23 65 6e 64 69 66 0a 0a | 23 64 65 66 69 6e 65 20 |#endif..|#define |
|00004ec0| 4d 54 41 42 5f 46 49 4c | 45 20 4d 4f 55 4e 54 45 |MTAB_FIL|E MOUNTE|
|00004ed0| 44 0a 23 64 65 66 69 6e | 65 20 4c 4f 43 4b 5f 46 |D.#defin|e LOCK_F|
|00004ee0| 49 4c 45 20 22 2f 65 74 | 63 2f 6d 74 61 62 7e 22 |ILE "/et|c/mtab~"|
|00004ef0| 0a 0a 23 64 65 66 69 6e | 65 20 55 46 53 54 41 42 |..#defin|e UFSTAB|
|00004f00| 20 22 2f 65 74 63 2f 75 | 66 73 74 61 62 22 0a 0a | "/etc/u|fstab"..|
|00004f10| 69 6e 74 20 6f 70 74 5f | 6d 6f 75 6e 74 61 6c 6c |int opt_|mountall|
|00004f20| 20 3d 20 30 3b 0a 69 6e | 74 20 6f 70 74 5f 70 72 | = 0;.in|t opt_pr|
|00004f30| 69 6e 74 20 20 20 20 3d | 20 30 3b 0a 69 6e 74 20 |int =| 0;.int |
|00004f40| 6f 70 74 5f 76 65 72 62 | 6f 73 65 20 20 3d 20 30 |opt_verb|ose = 0|
|00004f50| 3b 0a 69 6e 74 20 6f 70 | 74 5f 73 74 64 20 20 20 |;.int op|t_std |
|00004f60| 20 20 20 3d 20 30 3b 0a | 69 6e 74 20 6f 70 74 5f | = 0;.|int opt_|
|00004f70| 75 73 65 72 6d 6f 75 6e | 74 3d 20 30 3b 0a 69 6e |usermoun|t= 0;.in|
|00004f80| 74 20 6f 70 74 5f 66 61 | 6b 65 6d 74 61 62 20 3d |t opt_fa|kemtab =|
|00004f90| 20 30 3b 0a 69 6e 74 20 | 6f 70 74 5f 6e 6f 6d 74 | 0;.int |opt_nomt|
|00004fa0| 61 62 20 20 20 3d 20 30 | 3b 0a 69 6e 74 20 6f 70 |ab = 0|;.int op|
|00004fb0| 74 5f 74 79 70 65 20 20 | 20 20 20 3d 20 30 3b 0a |t_type | = 0;.|
|00004fc0| 0a 63 68 61 72 20 6f 70 | 74 5f 6e 6f 73 74 64 5b |.char op|t_nostd[|
|00004fd0| 32 30 30 5d 3b 0a 63 68 | 61 72 20 6d 6e 74 6f 70 |200];.ch|ar mntop|
|00004fe0| 74 69 6f 6e 73 5b 32 30 | 30 5d 20 3d 20 22 64 65 |tions[20|0] = "de|
|00004ff0| 66 61 75 6c 74 73 22 3b | 0a 0a 63 68 61 72 20 6d |faults";|..char m|
|00005000| 6e 74 74 79 70 65 5b 4d | 4e 54 4d 41 58 53 54 52 |nttype[M|NTMAXSTR|
|00005010| 5d 20 3d 20 22 22 3b 0a | 63 68 61 72 20 2a 6d 6e |] = "";.|char *mn|
|00005020| 74 64 65 76 20 3d 20 4e | 55 4c 4c 2c 20 2a 6d 6e |tdev = N|ULL, *mn|
|00005030| 74 64 69 72 20 3d 20 4e | 55 4c 4c 3b 0a 63 68 61 |tdir = N|ULL;.cha|
|00005040| 72 20 6d 6e 74 64 65 76 | 62 75 66 5b 4d 4e 54 4d |r mntdev|buf[MNTM|
|00005050| 41 58 53 54 52 5d 3b 0a | 0a 76 6f 69 64 20 75 73 |AXSTR];.|.void us|
|00005060| 61 67 65 28 29 2c 20 70 | 72 6f 63 65 73 73 5f 6f |age(), p|rocess_o|
|00005070| 70 74 69 6f 6e 73 28 63 | 68 61 72 20 2a 6f 70 74 |ptions(c|har *opt|
|00005080| 73 29 3b 0a 76 6f 69 64 | 20 65 72 72 28 63 68 61 |s);.void| err(cha|
|00005090| 72 20 2a 73 74 72 29 3b | 0a 76 6f 69 64 20 70 72 |r *str);|.void pr|
|000050a0| 69 6e 74 5f 6d 74 61 62 | 28 63 68 61 72 20 2a 29 |int_mtab|(char *)|
|000050b0| 3b 0a 69 6e 74 20 64 6f | 5f 6d 6f 75 6e 74 28 73 |;.int do|_mount(s|
|000050c0| 74 72 75 63 74 20 6d 6e | 74 65 6e 74 20 2a 29 3b |truct mn|tent *);|
|000050d0| 0a 69 6e 74 20 6c 6f 63 | 6b 5f 6d 74 61 62 28 29 |.int loc|k_mtab()|
|000050e0| 3b 0a 76 6f 69 64 20 75 | 6e 6c 6f 63 6b 5f 6d 74 |;.void u|nlock_mt|
|000050f0| 61 62 28 29 3b 0a 76 6f | 69 64 20 70 72 69 6e 74 |ab();.vo|id print|
|00005100| 5f 6d 6e 74 65 6e 74 28 | 73 74 72 75 63 74 20 6d |_mntent(|struct m|
|00005110| 6e 74 65 6e 74 20 2a 29 | 3b 0a 0a 76 6f 69 64 20 |ntent *)|;..void |
|00005120| 75 73 61 67 65 28 29 0a | 7b 0a 20 20 20 20 66 70 |usage().|{. fp|
|00005130| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 0a 09 20 |rintf(st|derr,.. |
|00005140| 20 20 20 22 55 73 61 67 | 65 3a 20 75 73 65 72 6d | "Usag|e: userm|
|00005150| 6f 75 6e 74 20 5b 2d 66 | 6e 70 72 76 5d 20 5b 2d |ount [-f|nprv] [-|
|00005160| 74 20 74 79 70 65 5d 20 | 5b 2d 6f 20 6f 70 74 69 |t type] |[-o opti|
|00005170| 6f 6e 73 5d 20 5b 5b 64 | 65 76 5d 20 64 69 72 5d |ons] [[d|ev] dir]|
|00005180| 5c 6e 22 29 3b 0a 0a 20 | 20 20 20 65 72 72 28 4e |\n");.. | err(N|
|00005190| 55 4c 4c 29 3b 0a 7d 0a | 0a 69 6e 74 20 6d 61 69 |ULL);.}.|.int mai|
|000051a0| 6e 28 69 6e 74 20 61 72 | 67 63 2c 20 63 68 61 72 |n(int ar|gc, char|
|000051b0| 20 2a 61 72 67 76 5b 5d | 29 0a 7b 0a 20 20 20 20 | *argv[]|).{. |
|000051c0| 63 68 61 72 20 63 3b 0a | 0a 20 20 20 20 2f 2a 20 |char c;.|. /* |
|000051d0| 70 61 72 73 65 20 6f 70 | 74 69 6f 6e 73 20 2a 2f |parse op|tions */|
|000051e0| 0a 0a 20 20 20 20 77 68 | 69 6c 65 28 28 63 20 3d |.. wh|ile((c =|
|000051f0| 20 67 65 74 6f 70 74 28 | 61 72 67 63 2c 20 61 72 | getopt(|argc, ar|
|00005200| 67 76 2c 20 22 66 6e 70 | 74 3a 72 76 6f 3a 22 29 |gv, "fnp|t:rvo:")|
|00005210| 29 20 21 3d 20 45 4f 46 | 29 20 7b 0a 09 73 77 69 |) != EOF|) {..swi|
|00005220| 74 63 68 28 63 29 20 7b | 0a 09 20 20 63 61 73 65 |tch(c) {|.. case|
|00005230| 20 27 70 27 3a 0a 09 20 | 20 20 20 6f 70 74 5f 70 | 'p':.. | opt_p|
|00005240| 72 69 6e 74 20 3d 20 31 | 3b 0a 09 20 20 20 20 62 |rint = 1|;.. b|
|00005250| 72 65 61 6b 3b 0a 09 20 | 20 63 61 73 65 20 27 74 |reak;.. | case 't|
|00005260| 27 3a 0a 09 20 20 20 20 | 73 74 72 6e 63 70 79 28 |':.. |strncpy(|
|00005270| 6d 6e 74 74 79 70 65 2c | 20 6f 70 74 61 72 67 2c |mnttype,| optarg,|
|00005280| 20 4d 4e 54 4d 41 58 53 | 54 52 2d 31 29 3b 0a 09 | MNTMAXS|TR-1);..|
|00005290| 20 20 20 20 6f 70 74 5f | 74 79 70 65 3d 31 3b 0a | opt_|type=1;.|
|000052a0| 09 20 20 20 20 62 72 65 | 61 6b 3b 0a 09 20 20 63 |. bre|ak;.. c|
|000052b0| 61 73 65 20 27 72 27 3a | 0a 09 20 20 20 20 69 66 |ase 'r':|.. if|
|000052c0| 28 6d 6e 74 6f 70 74 69 | 6f 6e 73 5b 30 5d 20 21 |(mntopti|ons[0] !|
|000052d0| 3d 20 27 5c 30 27 29 20 | 73 74 72 63 61 74 28 6d |= '\0') |strcat(m|
|000052e0| 6e 74 6f 70 74 69 6f 6e | 73 2c 20 22 2c 22 29 3b |ntoption|s, ",");|
|000052f0| 0a 09 20 20 20 20 73 74 | 72 63 61 74 28 6d 6e 74 |.. st|rcat(mnt|
|00005300| 6f 70 74 69 6f 6e 73 2c | 20 22 72 6f 22 29 3b 0a |options,| "ro");.|
|00005310| 09 20 20 20 20 62 72 65 | 61 6b 3b 0a 09 20 20 63 |. bre|ak;.. c|
|00005320| 61 73 65 20 27 76 27 3a | 0a 09 20 20 20 20 6f 70 |ase 'v':|.. op|
|00005330| 74 5f 76 65 72 62 6f 73 | 65 20 3d 20 31 3b 0a 09 |t_verbos|e = 1;..|
|00005340| 20 20 20 20 62 72 65 61 | 6b 3b 0a 09 20 20 63 61 | brea|k;.. ca|
|00005350| 73 65 20 27 6f 27 3a 0a | 09 20 20 20 20 73 74 72 |se 'o':.|. str|
|00005360| 6e 63 70 79 28 6d 6e 74 | 6f 70 74 69 6f 6e 73 2c |ncpy(mnt|options,|
|00005370| 20 6f 70 74 61 72 67 2c | 20 73 69 7a 65 6f 66 28 | optarg,| sizeof(|
|00005380| 6d 6e 74 6f 70 74 69 6f | 6e 73 29 2d 31 29 3b 0a |mntoptio|ns)-1);.|
|00005390| 09 20 20 20 20 62 72 65 | 61 6b 3b 0a 09 20 20 63 |. bre|ak;.. c|
|000053a0| 61 73 65 20 27 66 27 3a | 0a 09 20 20 20 20 6f 70 |ase 'f':|.. op|
|000053b0| 74 5f 66 61 6b 65 6d 74 | 61 62 20 3d 20 31 3b 0a |t_fakemt|ab = 1;.|
|000053c0| 09 20 20 20 20 62 72 65 | 61 6b 3b 0a 09 20 20 63 |. bre|ak;.. c|
|000053d0| 61 73 65 20 27 6e 27 3a | 0a 09 20 20 20 20 6f 70 |ase 'n':|.. op|
|000053e0| 74 5f 6e 6f 6d 74 61 62 | 20 3d 20 31 3b 0a 09 20 |t_nomtab| = 1;.. |
|000053f0| 20 20 20 62 72 65 61 6b | 3b 0a 09 20 20 64 65 66 | break|;.. def|
|00005400| 61 75 6c 74 3a 0a 09 20 | 20 20 20 75 73 61 67 65 |ault:.. | usage|
|00005410| 28 29 3b 0a 09 7d 0a 20 | 20 20 20 7d 0a 0a 20 20 |();..}. | }.. |
|00005420| 20 20 6f 70 74 5f 75 73 | 65 72 6d 6f 75 6e 74 20 | opt_us|ermount |
|00005430| 3d 20 31 3b 20 2f 2a 20 | 52 47 74 74 69 3a 20 6f |= 1; /* |RGtti: o|
|00005440| 6e 6c 79 20 75 73 65 72 | 6d 6f 75 6e 74 20 2a 2f |nly user|mount */|
|00005450| 0a 0a 20 20 20 20 69 66 | 28 6f 70 74 69 6e 64 20 |.. if|(optind |
|00005460| 3c 20 61 72 67 63 29 20 | 7b 0a 09 6d 6e 74 64 65 |< argc) |{..mntde|
|00005470| 76 20 3d 20 61 72 67 76 | 5b 6f 70 74 69 6e 64 2b |v = argv|[optind+|
|00005480| 2b 5d 3b 0a 09 69 66 28 | 6f 70 74 69 6e 64 20 3e |+];..if(|optind >|
|00005490| 3d 20 61 72 67 63 29 20 | 7b 0a 09 20 20 20 20 63 |= argc) |{.. c|
|000054a0| 68 61 72 20 2a 66 69 6c | 65 6e 61 6d 65 20 3d 20 |har *fil|ename = |
|000054b0| 55 46 53 54 41 42 3b 0a | 09 20 20 20 20 46 49 4c |UFSTAB;.|. FIL|
|000054c0| 45 20 2a 66 73 74 61 62 | 3b 0a 09 20 20 20 20 73 |E *fstab|;.. s|
|000054d0| 74 72 75 63 74 20 6d 6e | 74 65 6e 74 20 2a 6d 70 |truct mn|tent *mp|
|000054e0| 3b 0a 09 20 20 20 20 0a | 0a 09 20 20 20 20 2f 2a |;.. .|.. /*|
|000054f0| 20 6f 6e 6c 79 20 61 20 | 6d 6f 75 6e 74 2d 70 6f | only a |mount-po|
|00005500| 69 6e 74 20 77 61 73 20 | 67 69 76 65 6e 2c 20 6c |int was |given, l|
|00005510| 6f 6f 6b 20 75 70 20 64 | 65 76 69 63 65 20 69 6e |ook up d|evice in|
|00005520| 20 66 73 74 61 62 20 2a | 2f 0a 09 20 20 20 20 6d | fstab *|/.. m|
|00005530| 6e 74 64 69 72 20 3d 20 | 6d 6e 74 64 65 76 3b 20 |ntdir = |mntdev; |
|00005540| 6d 6e 74 64 65 76 20 3d | 20 4e 55 4c 4c 3b 0a 0a |mntdev =| NULL;..|
|00005550| 09 20 20 20 20 69 66 28 | 21 28 66 73 74 61 62 20 |. if(|!(fstab |
|00005560| 3d 20 73 65 74 6d 6e 74 | 65 6e 74 28 66 69 6c 65 |= setmnt|ent(file|
|00005570| 6e 61 6d 65 2c 20 22 72 | 22 29 29 29 20 65 72 72 |name, "r|"))) err|
|00005580| 28 66 69 6c 65 6e 61 6d | 65 29 3b 0a 09 20 20 20 |(filenam|e);.. |
|00005590| 20 77 68 69 6c 65 28 28 | 6d 70 20 3d 20 67 65 74 | while((|mp = get|
|000055a0| 6d 6e 74 65 6e 74 28 66 | 73 74 61 62 29 29 29 20 |mntent(f|stab))) |
|000055b0| 7b 0a 09 09 69 66 28 20 | 28 21 73 74 72 63 6d 70 |{...if( |(!strcmp|
|000055c0| 28 6d 6e 74 64 69 72 2c | 20 6d 70 2d 3e 6d 6e 74 |(mntdir,| mp->mnt|
|000055d0| 5f 64 69 72 29 29 20 26 | 26 20 0a 20 20 20 20 20 |_dir)) &|& . |
|000055e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|000055f0| 21 73 74 72 63 6d 70 28 | 6d 6e 74 74 79 70 65 2c |!strcmp(|mnttype,|
|00005600| 20 6d 70 2d 3e 6d 6e 74 | 5f 74 79 70 65 29 20 7c | mp->mnt|_type) ||
|00005610| 7c 20 21 6f 70 74 5f 74 | 79 70 65 29 20 29 20 7b || !opt_t|ype) ) {|
|00005620| 0a 09 09 20 20 20 20 73 | 74 72 6e 63 70 79 28 6d |... s|trncpy(m|
|00005630| 6e 74 64 65 76 62 75 66 | 2c 20 6d 70 2d 3e 6d 6e |ntdevbuf|, mp->mn|
|00005640| 74 5f 66 73 6e 61 6d 65 | 2c 20 73 69 7a 65 6f 66 |t_fsname|, sizeof|
|00005650| 28 6d 6e 74 64 65 76 62 | 75 66 29 2d 31 29 3b 0a |(mntdevb|uf)-1);.|
|00005660| 09 09 20 20 20 20 6d 6e | 74 64 65 76 20 3d 20 6d |.. mn|tdev = m|
|00005670| 6e 74 64 65 76 62 75 66 | 3b 0a 09 09 20 20 20 20 |ntdevbuf|;... |
|00005680| 62 72 65 61 6b 3b 0a 09 | 09 7d 20 65 6c 73 65 20 |break;..|.} else |
|00005690| 69 66 28 20 28 21 73 74 | 72 63 6d 70 28 6d 6e 74 |if( (!st|rcmp(mnt|
|000056a0| 64 69 72 2c 20 6d 70 2d | 3e 6d 6e 74 5f 66 73 6e |dir, mp-|>mnt_fsn|
|000056b0| 61 6d 65 29 29 20 26 26 | 0a 20 20 20 20 20 20 20 |ame)) &&|. |
|000056c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056d0| 20 20 20 20 28 21 73 74 | 72 63 6d 70 28 6d 6e 74 | (!st|rcmp(mnt|
|000056e0| 74 79 70 65 2c 20 6d 70 | 2d 3e 6d 6e 74 5f 74 79 |type, mp|->mnt_ty|
|000056f0| 70 65 29 20 7c 7c 20 21 | 6f 70 74 5f 74 79 70 65 |pe) || !|opt_type|
|00005700| 29 29 20 7b 0a 09 09 20 | 20 20 20 73 74 72 6e 63 |)) {... | strnc|
|00005710| 70 79 28 6d 6e 74 64 65 | 76 62 75 66 2c 20 6d 70 |py(mntde|vbuf, mp|
|00005720| 2d 3e 6d 6e 74 5f 64 69 | 72 2c 20 73 69 7a 65 6f |->mnt_di|r, sizeo|
|00005730| 66 28 6d 6e 74 64 65 76 | 62 75 66 29 2d 31 29 3b |f(mntdev|buf)-1);|
|00005740| 0a 09 09 20 20 20 20 6d | 6e 74 64 65 76 20 3d 20 |... m|ntdev = |
|00005750| 6d 6e 74 64 69 72 3b 0a | 09 09 20 20 20 20 6d 6e |mntdir;.|.. mn|
|00005760| 74 64 69 72 20 3d 20 6d | 6e 74 64 65 76 62 75 66 |tdir = m|ntdevbuf|
|00005770| 3b 0a 09 09 7d 0a 09 20 | 20 20 20 7d 0a 09 20 20 |;...}.. | }.. |
|00005780| 20 20 65 6e 64 6d 6e 74 | 65 6e 74 28 66 73 74 61 | endmnt|ent(fsta|
|00005790| 62 29 3b 0a 0a 09 20 20 | 20 20 69 66 28 21 6d 6e |b);... | if(!mn|
|000057a0| 74 64 65 76 29 20 7b 0a | 09 09 66 70 72 69 6e 74 |tdev) {.|..fprint|
|000057b0| 66 28 73 74 64 65 72 72 | 2c 20 22 6d 6f 75 6e 74 |f(stderr|, "mount|
|000057c0| 3a 20 44 6f 6e 27 74 20 | 6b 6e 6f 77 20 77 68 61 |: Don't |know wha|
|000057d0| 74 20 74 6f 20 6d 6f 75 | 6e 74 20 6f 6e 20 25 73 |t to mou|nt on %s|
|000057e0| 5c 6e 22 2c 0a 09 09 09 | 6d 6e 74 64 69 72 29 3b |\n",....|mntdir);|
|000057f0| 0a 09 09 65 72 72 28 4e | 55 4c 4c 29 3b 0a 09 20 |...err(N|ULL);.. |
|00005800| 20 20 20 7d 0a 09 7d 20 | 65 6c 73 65 20 6d 6e 74 | }..} |else mnt|
|00005810| 64 69 72 20 3d 20 61 72 | 67 76 5b 6f 70 74 69 6e |dir = ar|gv[optin|
|00005820| 64 5d 3b 0a 0a 20 20 20 | 20 7d 20 65 6c 73 65 20 |d];.. | } else |
|00005830| 69 66 28 61 72 67 63 20 | 3d 3d 20 31 29 20 7b 0a |if(argc |== 1) {.|
|00005840| 09 2f 2a 20 77 69 74 68 | 20 6e 6f 20 61 72 67 73 |./* with| no args|
|00005850| 2c 20 6a 75 73 74 20 70 | 72 69 6e 74 20 6d 74 61 |, just p|rint mta|
|00005860| 62 20 2a 2f 0a 09 70 72 | 69 6e 74 5f 6d 74 61 62 |b */..pr|int_mtab|
|00005870| 28 4d 54 41 42 5f 46 49 | 4c 45 29 3b 0a 09 75 6e |(MTAB_FI|LE);..un|
|00005880| 6c 6f 63 6b 5f 6d 74 61 | 62 28 29 3b 0a 09 65 78 |lock_mta|b();..ex|
|00005890| 69 74 28 30 29 3b 0a 20 | 20 20 20 7d 0a 0a 20 20 |it(0);. | }.. |
|000058a0| 20 20 2f 2a 20 64 6f 6e | 65 20 77 69 74 68 20 74 | /* don|e with t|
|000058b0| 68 65 20 61 72 67 75 6d | 65 6e 74 73 2c 20 6e 6f |he argum|ents, no|
|000058c0| 77 20 64 6f 20 73 6f 6d | 65 20 77 6f 72 6b 20 2a |w do som|e work *|
|000058d0| 2f 0a 0a 20 20 20 20 69 | 66 28 67 65 74 65 75 69 |/.. i|f(geteui|
|000058e0| 64 28 29 29 20 7b 0a 09 | 66 70 72 69 6e 74 66 28 |d()) {..|fprintf(|
|000058f0| 73 74 64 65 72 72 2c 20 | 22 75 73 65 72 6d 6f 75 |stderr, |"usermou|
|00005900| 6e 74 3a 20 49 20 68 61 | 76 65 20 74 6f 20 62 65 |nt: I ha|ve to be|
|00005910| 20 69 6e 73 74 61 6c 6c | 65 64 20 73 65 74 75 69 | install|ed setui|
|00005920| 64 20 72 6f 6f 74 21 2e | 5c 6e 22 29 3b 0a 09 65 |d root!.|\n");..e|
|00005930| 72 72 28 4e 55 4c 4c 29 | 3b 0a 20 20 20 20 7d 0a |rr(NULL)|;. }.|
|00005940| 0a 20 20 20 20 2f 2a 20 | 63 68 65 63 6b 20 66 6f |. /* |check fo|
|00005950| 72 20 6c 6f 63 6b 20 2a | 2f 0a 20 20 20 20 69 66 |r lock *|/. if|
|00005960| 28 21 6c 6f 63 6b 5f 6d | 74 61 62 28 29 29 20 7b |(!lock_m|tab()) {|
|00005970| 0a 09 2f 2a 20 64 6f 6e | 27 74 20 75 73 65 20 65 |../* don|'t use e|
|00005980| 72 72 28 29 20 66 6f 72 | 20 74 68 69 73 20 2a 2f |rr() for| this */|
|00005990| 0a 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|000059a0| 2c 20 22 75 73 65 72 6d | 6f 75 6e 74 3a 20 41 20 |, "userm|ount: A |
|000059b0| 6c 6f 63 6b 2d 66 69 6c | 65 20 65 78 69 73 74 73 |lock-fil|e exists|
|000059c0| 2c 20 6d 6f 75 6e 74 20 | 64 65 6e 69 65 64 2e 5c |, mount |denied.\|
|000059d0| 6e 22 29 3b 0a 09 65 78 | 69 74 28 31 29 3b 0a 20 |n");..ex|it(1);. |
|000059e0| 20 20 20 7d 0a 0a 20 20 | 20 20 69 66 28 6d 6e 74 | }.. | if(mnt|
|000059f0| 64 69 72 29 20 7b 0a 09 | 73 74 72 75 63 74 20 6d |dir) {..|struct m|
|00005a00| 6e 74 65 6e 74 20 6d 6e | 74 3b 0a 0a 09 69 66 28 |ntent mn|t;...if(|
|00005a10| 6f 70 74 5f 75 73 65 72 | 6d 6f 75 6e 74 29 20 7b |opt_user|mount) {|
|00005a20| 0a 09 20 20 20 20 46 49 | 4c 45 20 2a 66 73 74 61 |.. FI|LE *fsta|
|00005a30| 62 3b 0a 09 20 20 20 20 | 73 74 72 75 63 74 20 6d |b;.. |struct m|
|00005a40| 6e 74 65 6e 74 20 2a 6d | 70 3b 0a 09 20 20 20 20 |ntent *m|p;.. |
|00005a50| 69 6e 74 20 66 6c 61 67 | 20 3d 20 30 3b 0a 0a 09 |int flag| = 0;...|
|00005a60| 20 20 20 20 69 66 28 21 | 28 66 73 74 61 62 20 3d | if(!|(fstab =|
|00005a70| 20 73 65 74 6d 6e 74 65 | 6e 74 28 55 46 53 54 41 | setmnte|nt(UFSTA|
|00005a80| 42 2c 20 22 72 22 29 29 | 29 20 65 72 72 28 55 46 |B, "r"))|) err(UF|
|00005a90| 53 54 41 42 29 3b 0a 09 | 20 20 20 20 77 68 69 6c |STAB);..| whil|
|00005aa0| 65 28 28 6d 70 20 3d 20 | 67 65 74 6d 6e 74 65 6e |e((mp = |getmnten|
|00005ab0| 74 28 66 73 74 61 62 29 | 29 29 20 7b 0a 09 09 69 |t(fstab)|)) {...i|
|00005ac0| 66 28 21 73 74 72 63 6d | 70 28 6d 6e 74 64 65 76 |f(!strcm|p(mntdev|
|00005ad0| 2c 20 6d 70 2d 3e 6d 6e | 74 5f 66 73 6e 61 6d 65 |, mp->mn|t_fsname|
|00005ae0| 29 20 0a 09 09 20 20 20 | 26 26 20 21 73 74 72 63 |) ... |&& !strc|
|00005af0| 6d 70 28 6d 6e 74 64 69 | 72 2c 20 6d 70 2d 3e 6d |mp(mntdi|r, mp->m|
|00005b00| 6e 74 5f 64 69 72 29 0a | 20 20 20 20 20 20 20 20 |nt_dir).| |
|00005b10| 20 20 20 20 20 20 20 20 | 20 20 20 26 26 20 28 21 | | && (!|
|00005b20| 73 74 72 63 6d 70 28 6d | 6e 74 74 79 70 65 2c 20 |strcmp(m|nttype, |
|00005b30| 6d 70 2d 3e 6d 6e 74 5f | 74 79 70 65 29 20 7c 7c |mp->mnt_|type) |||
|00005b40| 20 21 6f 70 74 5f 74 79 | 70 65 29 20 29 20 7b 0a | !opt_ty|pe) ) {.|
|00005b50| 09 09 20 20 20 20 66 6c | 61 67 20 3d 20 31 3b 0a |.. fl|ag = 1;.|
|00005b60| 09 09 20 20 20 20 73 74 | 72 6e 63 70 79 28 6d 6e |.. st|rncpy(mn|
|00005b70| 74 6f 70 74 69 6f 6e 73 | 2c 20 6d 70 2d 3e 6d 6e |toptions|, mp->mn|
|00005b80| 74 5f 6f 70 74 73 2c 20 | 73 69 7a 65 6f 66 28 6d |t_opts, |sizeof(m|
|00005b90| 6e 74 6f 70 74 69 6f 6e | 73 29 2d 31 29 3b 0a 09 |ntoption|s)-1);..|
|00005ba0| 09 20 20 20 20 73 74 72 | 6e 63 70 79 28 6d 6e 74 |. str|ncpy(mnt|
|00005bb0| 74 79 70 65 2c 20 6d 70 | 2d 3e 6d 6e 74 5f 74 79 |type, mp|->mnt_ty|
|00005bc0| 70 65 2c 20 73 69 7a 65 | 6f 66 28 6d 6e 74 74 79 |pe, size|of(mntty|
|00005bd0| 70 65 29 2d 31 29 3b 0a | 09 09 20 20 20 20 62 72 |pe)-1);.|.. br|
|00005be0| 65 61 6b 3b 0a 09 09 7d | 0a 09 20 20 20 20 7d 0a |eak;...}|.. }.|
|00005bf0| 09 20 20 20 20 65 6e 64 | 6d 6e 74 65 6e 74 28 66 |. end|mntent(f|
|00005c00| 73 74 61 62 29 3b 0a 09 | 20 20 20 20 69 66 28 21 |stab);..| if(!|
|00005c10| 66 6c 61 67 29 20 7b 0a | 09 09 66 70 72 69 6e 74 |flag) {.|..fprint|
|00005c20| 66 28 73 74 64 65 72 72 | 2c 20 22 75 73 65 72 6d |f(stderr|, "userm|
|00005c30| 6f 75 6e 74 3a 20 43 61 | 6e 27 74 20 75 73 65 72 |ount: Ca|n't user|
|00005c40| 6d 6f 75 6e 74 20 25 73 | 2e 5c 6e 22 2c 20 6d 6e |mount %s|.\n", mn|
|00005c50| 74 64 69 72 29 3b 0a 09 | 09 65 72 72 28 4e 55 4c |tdir);..|.err(NUL|
|00005c60| 4c 29 3b 0a 09 20 20 20 | 20 7d 0a 09 7d 0a 0a 09 |L);.. | }..}...|
|00005c70| 6d 6e 74 2e 6d 6e 74 5f | 74 79 70 65 20 20 20 3d |mnt.mnt_|type =|
|00005c80| 20 6d 6e 74 74 79 70 65 | 3b 0a 09 6d 6e 74 2e 6d | mnttype|;..mnt.m|
|00005c90| 6e 74 5f 66 73 6e 61 6d | 65 20 3d 20 6d 6e 74 64 |nt_fsnam|e = mntd|
|00005ca0| 65 76 3b 0a 09 6d 6e 74 | 2e 6d 6e 74 5f 64 69 72 |ev;..mnt|.mnt_dir|
|00005cb0| 20 20 20 20 3d 20 6d 6e | 74 64 69 72 3b 0a 09 6d | = mn|tdir;..m|
|00005cc0| 6e 74 2e 6d 6e 74 5f 6f | 70 74 73 20 20 20 3d 20 |nt.mnt_o|pts = |
|00005cd0| 6d 6e 74 6f 70 74 69 6f | 6e 73 3b 0a 09 6d 6e 74 |mntoptio|ns;..mnt|
|00005ce0| 2e 6d 6e 74 5f 66 72 65 | 71 20 20 20 3d 20 30 3b |.mnt_fre|q = 0;|
|00005cf0| 0a 09 6d 6e 74 2e 6d 6e | 74 5f 70 61 73 73 6e 6f |..mnt.mn|t_passno|
|00005d00| 20 3d 20 30 3b 0a 0a 09 | 69 66 28 21 64 6f 5f 6d | = 0;...|if(!do_m|
|00005d10| 6f 75 6e 74 28 26 6d 6e | 74 29 29 20 7b 0a 09 20 |ount(&mn|t)) {.. |
|00005d20| 20 20 20 75 6e 6c 6f 63 | 6b 5f 6d 74 61 62 28 29 | unloc|k_mtab()|
|00005d30| 3b 0a 09 20 20 20 20 65 | 78 69 74 28 31 29 3b 0a |;.. e|xit(1);.|
|00005d40| 09 7d 0a 0a 09 2f 2a 20 | 4e 6f 77 20 73 65 74 20 |.}.../* |Now set |
|00005d50| 74 68 65 20 75 69 64 2c | 20 67 69 64 20 6f 66 20 |the uid,| gid of |
|00005d60| 74 68 65 20 6d 6f 75 6e | 74 2d 70 6f 69 6e 74 20 |the moun|t-point |
|00005d70| 74 6f 20 74 68 65 20 75 | 73 65 72 20 2a 2f 0a 0a |to the u|ser */..|
|00005d80| 09 63 68 6f 77 6e 28 6d | 6e 74 64 69 72 2c 67 65 |.chown(m|ntdir,ge|
|00005d90| 74 75 69 64 28 29 2c 67 | 65 74 67 69 64 28 29 29 |tuid(),g|etgid())|
|00005da0| 3b 0a 20 20 20 20 7d 0a | 0a 20 20 20 20 75 6e 6c |;. }.|. unl|
|00005db0| 6f 63 6b 5f 6d 74 61 62 | 28 29 3b 0a 0a 20 20 20 |ock_mtab|();.. |
|00005dc0| 20 65 78 69 74 28 30 29 | 3b 0a 7d 0a 0a 69 6e 74 | exit(0)|;.}..int|
|00005dd0| 20 6c 6f 63 6b 5f 6d 74 | 61 62 28 29 0a 7b 0a 20 | lock_mt|ab().{. |
|00005de0| 20 20 20 69 6e 74 20 66 | 64 3b 0a 0a 20 20 20 20 | int f|d;.. |
|00005df0| 69 66 28 28 66 64 20 3d | 20 6f 70 65 6e 28 4c 4f |if((fd =| open(LO|
|00005e00| 43 4b 5f 46 49 4c 45 2c | 20 4f 5f 57 52 4f 4e 4c |CK_FILE,| O_WRONL|
|00005e10| 59 20 7c 20 4f 5f 43 52 | 45 41 54 20 7c 20 4f 5f |Y | O_CR|EAT | O_|
|00005e20| 45 58 43 4c 2c 20 30 37 | 34 34 29 29 20 3c 20 30 |EXCL, 07|44)) < 0|
|00005e30| 29 20 72 65 74 75 72 6e | 20 30 3b 0a 20 20 20 20 |) return| 0;. |
|00005e40| 63 6c 6f 73 65 28 66 64 | 29 3b 0a 20 20 20 20 72 |close(fd|);. r|
|00005e50| 65 74 75 72 6e 20 31 3b | 0a 7d 0a 0a 76 6f 69 64 |eturn 1;|.}..void|
|00005e60| 20 75 6e 6c 6f 63 6b 5f | 6d 74 61 62 28 29 0a 7b | unlock_|mtab().{|
|00005e70| 0a 20 20 20 20 75 6e 6c | 69 6e 6b 28 4c 4f 43 4b |. unl|ink(LOCK|
|00005e80| 5f 46 49 4c 45 29 3b 0a | 7d 0a 0a 69 6e 74 20 64 |_FILE);.|}..int d|
|00005e90| 6f 5f 6d 6f 75 6e 74 28 | 73 74 72 75 63 74 20 6d |o_mount(|struct m|
|00005ea0| 6e 74 65 6e 74 20 2a 6d | 70 29 0a 7b 0a 20 20 20 |ntent *m|p).{. |
|00005eb0| 20 73 74 72 75 63 74 20 | 73 74 61 74 20 73 3b 0a | struct |stat s;.|
|00005ec0| 20 20 20 20 46 49 4c 45 | 20 2a 6d 74 61 62 3b 0a | FILE| *mtab;.|
|00005ed0| 0a 20 20 20 20 69 66 28 | 21 6d 70 2d 3e 6d 6e 74 |. if(|!mp->mnt|
|00005ee0| 5f 74 79 70 65 20 7c 7c | 20 21 6d 70 2d 3e 6d 6e |_type ||| !mp->mn|
|00005ef0| 74 5f 74 79 70 65 5b 30 | 5d 29 20 6d 70 2d 3e 6d |t_type[0|]) mp->m|
|00005f00| 6e 74 5f 74 79 70 65 20 | 3d 20 22 6d 69 6e 69 78 |nt_type |= "minix|
|00005f10| 22 3b 0a 20 20 20 20 0a | 20 20 20 20 69 66 28 21 |";. .| if(!|
|00005f20| 6f 70 74 5f 66 61 6b 65 | 6d 74 61 62 29 20 7b 0a |opt_fake|mtab) {.|
|00005f30| 09 2f 2a 20 63 68 65 63 | 6b 20 74 68 65 20 64 69 |./* chec|k the di|
|00005f40| 72 65 63 74 6f 72 79 20 | 2a 2f 0a 09 69 66 28 73 |rectory |*/..if(s|
|00005f50| 74 61 74 28 6d 70 2d 3e | 6d 6e 74 5f 64 69 72 2c |tat(mp->|mnt_dir,|
|00005f60| 20 26 73 29 20 3c 20 30 | 29 20 7b 0a 09 20 20 20 | &s) < 0|) {.. |
|00005f70| 20 69 66 28 65 72 72 6e | 6f 20 3d 3d 20 45 4e 4f | if(errn|o == ENO|
|00005f80| 45 4e 54 20 7c 7c 20 65 | 72 72 6e 6f 20 3d 3d 20 |ENT || e|rrno == |
|00005f90| 45 53 52 43 48 29 20 7b | 0a 09 09 69 66 28 6d 6b |ESRCH) {|...if(mk|
|00005fa0| 64 69 72 28 6d 70 2d 3e | 6d 6e 74 5f 64 69 72 2c |dir(mp->|mnt_dir,|
|00005fb0| 20 30 37 35 35 29 20 3c | 20 30 29 20 7b 0a 09 09 | 0755) <| 0) {...|
|00005fc0| 20 20 20 20 66 70 72 69 | 6e 74 66 28 73 74 64 65 | fpri|ntf(stde|
|00005fd0| 72 72 2c 20 22 75 73 65 | 72 6d 6f 75 6e 74 3a 20 |rr, "use|rmount: |
|00005fe0| 6d 6b 64 69 72 28 25 73 | 29 20 66 61 69 6c 65 64 |mkdir(%s|) failed|
|00005ff0| 2e 5c 6e 22 2c 20 6d 70 | 2d 3e 6d 6e 74 5f 64 69 |.\n", mp|->mnt_di|
|00006000| 72 29 3b 0a 09 09 20 20 | 20 20 72 65 74 75 72 6e |r);... | return|
|00006010| 20 30 3b 0a 09 09 7d 0a | 0a 09 09 69 66 28 6f 70 | 0;...}.|...if(op|
|00006020| 74 5f 76 65 72 62 6f 73 | 65 29 20 0a 09 09 20 20 |t_verbos|e) ... |
|00006030| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00006040| 22 4d 61 64 65 20 64 69 | 72 65 63 74 6f 72 79 3a |"Made di|rectory:|
|00006050| 20 25 73 5c 6e 22 2c 20 | 6d 70 2d 3e 6d 6e 74 5f | %s\n", |mp->mnt_|
|00006060| 64 69 72 29 3b 0a 09 09 | 0a 09 20 20 20 20 7d 20 |dir);...|.. } |
|00006070| 65 6c 73 65 20 7b 0a 09 | 09 66 70 72 69 6e 74 66 |else {..|.fprintf|
|00006080| 28 73 74 64 65 72 72 2c | 20 22 75 73 65 72 6d 6f |(stderr,| "usermo|
|00006090| 75 6e 74 3a 20 73 74 61 | 74 28 25 73 29 20 66 61 |unt: sta|t(%s) fa|
|000060a0| 69 6c 65 64 2e 5c 6e 22 | 2c 20 6d 70 2d 3e 6d 6e |iled.\n"|, mp->mn|
|000060b0| 74 5f 64 69 72 29 3b 0a | 09 09 72 65 74 75 72 6e |t_dir);.|..return|
|000060c0| 20 30 3b 0a 09 20 20 20 | 20 7d 0a 0a 09 7d 20 65 | 0;.. | }...} e|
|000060d0| 6c 73 65 20 69 66 28 21 | 53 5f 49 53 44 49 52 28 |lse if(!|S_ISDIR(|
|000060e0| 73 2e 73 74 5f 6d 6f 64 | 65 29 29 20 7b 0a 09 20 |s.st_mod|e)) {.. |
|000060f0| 20 20 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 | fprin|tf(stder|
|00006100| 72 2c 20 22 75 73 65 72 | 6d 6f 75 6e 74 3a 20 25 |r, "user|mount: %|
|00006110| 73 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |s alread|y exists|
|00006120| 2c 20 61 6e 64 20 69 73 | 6e 27 74 20 61 20 64 69 |, and is|n't a di|
|00006130| 72 65 63 74 6f 72 79 2e | 5c 6e 22 2c 0a 09 09 20 |rectory.|\n",... |
|00006140| 20 20 20 6d 70 2d 3e 6d | 6e 74 5f 64 69 72 29 3b | mp->m|nt_dir);|
|00006150| 0a 09 20 20 20 20 72 65 | 74 75 72 6e 20 30 3b 0a |.. re|turn 0;.|
|00006160| 09 7d 0a 0a 09 70 72 6f | 63 65 73 73 5f 6f 70 74 |.}...pro|cess_opt|
|00006170| 69 6f 6e 73 28 6d 70 2d | 3e 6d 6e 74 5f 6f 70 74 |ions(mp-|>mnt_opt|
|00006180| 73 29 3b 0a 0a 23 69 66 | 20 30 0a 09 70 72 69 6e |s);..#if| 0..prin|
|00006190| 74 66 28 22 75 73 65 72 | 6d 6f 75 6e 74 28 25 73 |tf("user|mount(%s|
|000061a0| 2c 25 73 2c 25 73 2c 25 | 78 2c 25 73 29 5c 6e 22 |,%s,%s,%|x,%s)\n"|
|000061b0| 2c 20 6d 70 2d 3e 6d 6e | 74 5f 66 73 6e 61 6d 65 |, mp->mn|t_fsname|
|000061c0| 2c 20 6d 70 2d 3e 6d 6e | 74 5f 64 69 72 2c 0a 09 |, mp->mn|t_dir,..|
|000061d0| 20 20 20 20 20 20 20 6d | 70 2d 3e 6d 6e 74 5f 74 | m|p->mnt_t|
|000061e0| 79 70 65 2c 20 6f 70 74 | 5f 73 74 64 2c 20 6f 70 |ype, opt|_std, op|
|000061f0| 74 5f 6e 6f 73 74 64 29 | 3b 0a 23 65 6e 64 69 66 |t_nostd)|;.#endif|
|00006200| 0a 0a 09 69 66 28 73 74 | 72 63 6d 70 28 6d 70 2d |...if(st|rcmp(mp-|
|00006210| 3e 6d 6e 74 5f 64 69 72 | 2c 20 22 2f 22 29 20 3d |>mnt_dir|, "/") =|
|00006220| 3d 20 30 29 20 7b 0a 09 | 20 20 20 20 69 66 28 6f |= 0) {..| if(o|
|00006230| 70 74 5f 76 65 72 62 6f | 73 65 29 0a 09 20 20 20 |pt_verbo|se).. |
|00006240| 20 20 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 | fprin|tf(stder|
|00006250| 72 2c 20 22 75 73 65 72 | 6d 6f 75 6e 74 3a 20 72 |r, "user|mount: r|
|00006260| 6f 6f 74 20 61 6c 72 65 | 61 64 79 20 6d 6f 75 6e |oot alre|ady moun|
|00006270| 74 65 64 20 62 79 20 6b | 65 72 6e 65 6c 5c 6e 22 |ted by k|ernel\n"|
|00006280| 29 3b 0a 09 7d 20 65 6c | 73 65 20 7b 0a 09 20 20 |);..} el|se {.. |
|00006290| 20 20 69 66 28 73 74 72 | 63 6d 70 28 6d 70 2d 3e | if(str|cmp(mp->|
|000062a0| 6d 6e 74 5f 74 79 70 65 | 2c 20 4d 4e 54 54 59 50 |mnt_type|, MNTTYP|
|000062b0| 45 5f 49 47 4e 4f 52 45 | 29 20 3d 3d 20 30 29 20 |E_IGNORE|) == 0) |
|000062c0| 7b 0a 09 09 69 66 28 6f | 70 74 5f 76 65 72 62 6f |{...if(o|pt_verbo|
|000062d0| 73 65 29 0a 09 09 20 20 | 66 70 72 69 6e 74 66 28 |se)... |fprintf(|
|000062e0| 73 74 64 65 72 72 2c 20 | 22 75 73 65 72 6d 6f 75 |stderr, |"usermou|
|000062f0| 6e 74 3a 20 69 67 6e 6f | 72 65 64 20 25 73 5c 6e |nt: igno|red %s\n|
|00006300| 22 2c 20 6d 70 2d 3e 6d | 6e 74 5f 66 73 6e 61 6d |", mp->m|nt_fsnam|
|00006310| 65 29 3b 0a 09 09 72 65 | 74 75 72 6e 20 31 3b 0a |e);...re|turn 1;.|
|00006320| 09 20 20 20 20 7d 0a 0a | 09 20 20 20 20 69 66 28 |. }..|. if(|
|00006330| 73 74 72 63 6d 70 28 6d | 70 2d 3e 6d 6e 74 5f 74 |strcmp(m|p->mnt_t|
|00006340| 79 70 65 2c 20 4d 4e 54 | 54 59 50 45 5f 53 57 41 |ype, MNT|TYPE_SWA|
|00006350| 50 29 20 3d 3d 20 30 29 | 20 7b 0a 09 09 66 70 72 |P) == 0)| {...fpr|
|00006360| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 75 73 65 |intf(std|err,"use|
|00006370| 72 6d 6f 75 6e 74 3a 20 | 6e 6f 72 6d 61 6c 20 75 |rmount: |normal u|
|00006380| 73 65 72 20 63 61 6e 6e | 6f 74 20 61 64 64 20 73 |ser cann|ot add s|
|00006390| 77 61 70 5c 6e 22 29 3b | 0a 09 09 72 65 74 75 72 |wap\n");|...retur|
|000063a0| 6e 20 31 3b 0a 09 20 20 | 20 20 7d 20 65 6c 73 65 |n 1;.. | } else|
|000063b0| 20 7b 0a 09 09 69 66 28 | 6d 6f 75 6e 74 28 6d 70 | {...if(|mount(mp|
|000063c0| 2d 3e 6d 6e 74 5f 66 73 | 6e 61 6d 65 2c 20 6d 70 |->mnt_fs|name, mp|
|000063d0| 2d 3e 6d 6e 74 5f 64 69 | 72 2c 20 6d 70 2d 3e 6d |->mnt_di|r, mp->m|
|000063e0| 6e 74 5f 74 79 70 65 2c | 0a 09 09 09 20 30 78 63 |nt_type,|.... 0xc|
|000063f0| 30 65 64 30 30 30 30 7c | 6f 70 74 5f 73 74 64 2c |0ed0000||opt_std,|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.