Lines Matching refs:swap
861 * Add a swap device to the system's configuration
869 yyerror("\"swap\" spec precedes \"config\" specification");
873 yyerror("illegal swap partition size");
877 * Append swap description to the end of the list.
886 * If first swap device for this system,
887 * set up f_fn field to insure swap
1114 * rules on root, argument, dump, and swap devices.
1120 register struct file_list *swap;
1127 swap = fl->f_next;
1128 generic = swap && swap->f_type == SWAPSPEC && eq(swap->f_fn, "generic");
1134 * Default swap area to be in 'b' partition of root's
1138 if (swap == 0 || swap->f_type != SWAPSPEC) {
1141 swap = newswap();
1145 "Warning, swap defaulted to 'b' partition with root on '%c' partition",
1149 swap->f_swapdev =
1151 swap->f_fn = devtoname(swap->f_swapdev);
1152 mkswap(fl, swap, 0);
1155 * Make sure a generic swap isn't specified, along with
1160 yyerror("root device specified with generic swap");
1162 yyerror("arg device specified with generic swap");
1164 yyerror("dump device specified with generic swap");
1171 fl->f_argdev = swap->f_swapdev;
1172 if (fl->f_argdev != swap->f_swapdev)
1173 yyerror("Warning, arg device different than primary swap");
1176 * swap area or the argument device partition.
1179 fl->f_dumpdev = swap->f_swapdev;
1180 if (fl->f_dumpdev != swap->f_swapdev && fl->f_dumpdev != fl->f_argdev) {
1181 struct file_list *p = swap->f_next;
1226 * Do as above, but for swap devices.
1239 "config: swap device %s not configured", fl->f_fn);