--- - branch: MAIN date: Wed Mar 1 15:15:56 UTC 2023 files: - new: '1.42' old: '1.41' path: src/sbin/swapctl/swapctl.c pathrev: src/sbin/swapctl/swapctl.c@1.42 type: modified id: 20230301T151556Z.6b5afbf12b28dbaa9d3625a343f29e7a73b0ebc0 log: | When processing swapon -a (or swapctl -A, or swapctl -U) ignore lines in fstab that have nothing to do with swapping (fs_type is neither "sw" nor "dp") before running getfsspecname() on the fs_spec field of the line. This avoids entries like this: NAME=OFTEN_UNCONNECTED /local/archived ffs rw,log,noauto 0 0 in fstab from generating spurious error messages when the wedge named is not currently connected to the system - that is the drive on which the wedge exists is not connected, or not powered on. "noauto" handles that for some other uses, the "0"s in fs_freq and fs_passno work for other uses, but swap{on,ctl} never look at those fields (not for this purpose). Non "sw"/"dp" lines were being ignored anyway, but not until (a little) later. module: src subject: 'CVS commit: src/sbin/swapctl' unixtime: '1677683756' user: kre