ref: ba21aa3d66126ad79c06b52b6f60c880710df775
dir: /man/mafs.8/
.TH MAFS 8 .SH NAME mafs \- file server maintenance .SH SYNOPSIS .PD 0 .PP .B halt .PP .B sync .sp .PP .B newuser .I name .RI [ options ] .SH DESCRIPTION Reading /adm/ctl prints the number of free, used and total blocks/megabytes. The following commands should be written to /adm/ctl of a .IR mafs (4) file server. .PP .I Halt stops the mafs service after pending writes to the disk are completed. .PP .I Sync blocks until all the pending writes to the disk are completed. .sp .PP The following commands should be written to /adm/users of a .IR mafs (4) file server. .PP .I Newuser requires a .I name argument. With no options it adds user .IR name , with group leader .IR name , to .B /adm/users and makes the directory .BI /usr/ name owned by user and group .IR name . The options are .TF =leaderxx .TP .B : Add a group: add the name to .B /adm/users but don't create the directory. By convention, groups are numbered starting from 10000, users from 0. .TP .I newname Rename existing user .I name to .IR newname . .TP .BI = leader Change the leader of .I name to .IR leader . If .I leader is missing, remove the existing leader. .TP .BI + member Add .I member to the member list of .IR name . .TP .BI - member Remove existing .I member from the member list of .IR name . .PP After a successful .I newuser command the file server overwrites .B /adm/users to reflect the internal state of the user table. .SH EXAMPLES Check disk usage (traditional df) of a mafs mounted at /n/mafs_myservice. .IP .EX % cat /n/myservice/adm/ctl .EE .SH SEE ALSO .IR mafs (4) .br Mafs - Plan 9 userspace file system .SH SOURCE .B /sys/src/cmd/mafs