forsyth20121205-174063a80cc13 years agoHistory
223 lines · 3.9 KB · Text
RawDownload
.TH MKFS 8.SH NAMEmkfs, mkext \- archive or update a file system.SH SYNOPSIS.B disk/mkfs.RB [ -aprvxS ].RB [ -d.IR dest ].RB [ -n.IR name ].RB [ -s.IR source ].RB [ -u.IR users ].RB [ -z.IR n ].RB [ -G.IR group ].RB [ -U.IR user ].I proto ....PP.B disk/mkext.RB [ -d.IR name ].RB [ -f ].RB [ -h ].RB [ -T ].RB [ -u ].RB [ -v ][.I file ...].SH DESCRIPTION.I Mkfscopies files from the file tree.I source(default.BR / )to a.B kfsfile system (see.IR kfs (4))assumed to be mounted on.I dest(default:.BR /n/kfs ).The.I protofiles are read,and any files specified in them that are out of date are copied to.IR dest .See.IR proto (6)for the description of file system prototype files..PP.I Mkfsby default copies only those files that are out of date.Such a file is first copied into a temporaryfile in the appropriate destination directoryand then moved to the destination file.Files in the.I kfsfile system that are not specified in the.I protofileare not updated and not removed..PPThe options to.I mkfsare:.TF "-s source".TP.B -aInstead of writing to a.B kfsfile system, write an archive file to standard output, suitable for.IR mkext .All files in.I protoare archived,not just those out of date..TP.B -xFor use with.BR -a ,this option writes a list of file names, dates, and sizes to standard outputrather than producing an archive file..TP.BI -n " name"Use.BI kfs. name .cmdas the name of the command file for the.IR kfs (4)assumed to be mounted on.IR dest ..TP.B -pUpdate the permissions of a file even if it is up to date..TP.B -rCopy all files..TP.BI -s " source"Copy from files rooted at the tree.IR source ..TP.BI -u " users"Before copying any other file, copy file.I usersinto.IB dest /adm/users ,and if the.B -noption was given, also issue the.IR kfs (4)command.B usersto update.IR kfs 'sown user list..TP.B -vPrint the names of all of the files as they are copied..TP.BI -z " n"Copy files assuming.I kfsis using a block size of.I nbytes(default 1024).If a block contains only 0-valued bytes, it is not copied..TP.B -SFor use with the.B -doption,make owner and group of each file copied match the original..TP.BI -G " group"Force all files copied to have the given.IR group ..TP.BI -U " user"Force all files copied to be owned by the given.IR user ..PD.PP.I Mkextunpacks an archive created by the.B -aoption of.IR mkfs ,read from the standard input.If one or more files are specified on the command line,only those files are unpacked.If a.I fileis a directory,all files and subdirectories of that directory are also unpacked.When a file is unpacked, the entire path is created if itdoes not exist.If no files are specified, the entire archive is unpacked;in this case, missing intermediate directories are not created.The options are:.TP.BI -d " dir"Treat.I dir(default.LR / )as the root directory when unpacking the archive..TP.B -hPrint headers for the files on standard outputinstead of unpacking the files..TP.B -TRestore the modification times of the files..TP.B -uSet the owners of the files created to correspond tothose in the archive and restore the modification times of the files..TP.B -vPrint the names and sizes of files as they are extracted..SH EXAMPLES.PPMake an archive to establish a new file system(assuming that the output file.B archis not referenced by.BR proto ):.IP.EXbind '#U' /n/localdisk/mkfs -a -s /n/local proto > arch.EE.PPUnpack that archive on another machine:.IP.EXmount tcp!server /n/remotedisk/mkext -u -d /n/remote < arch.EE.SH FILES.TF /lib/proto/portproto.TP.B /lib/protodirectory of prototype files..TP.B /lib/proto/allcontains a single + (archive any directory structure).SH SOURCE.B /appl/cmd/disk/mkfs.b.br.B /appl/cmd/disk/mkext.b.SH "SEE ALSO".IR fs (1),.IR kfs (4),.IR proto (6),.IR kfscmd (8)