mount.c (0b8c33590abff3c5aae969219197f3c193d16c68) mount.c (4818bd986c8954a9f112de832490a8dc7190baf3)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1980, 1989, 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 315 unchanged lines hidden (view full) ---

324 strcmp(type, FSTAB_RW) && strcmp(type, FSTAB_RQ))
325
326 if ((init_flags & MNT_UPDATE) && (ro == 0))
327 options = catopt(options, "noro");
328
329 rval = 0;
330 switch (argc) {
331 case 0:
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1980, 1989, 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 315 unchanged lines hidden (view full) ---

324 strcmp(type, FSTAB_RW) && strcmp(type, FSTAB_RQ))
325
326 if ((init_flags & MNT_UPDATE) && (ro == 0))
327 options = catopt(options, "noro");
328
329 rval = 0;
330 switch (argc) {
331 case 0:
332 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
332 if ((mntsize = getmntinfo(&mntbuf,
333 verbose ? MNT_WAIT : MNT_NOWAIT)) == 0)
333 err(1, "getmntinfo");
334 if (all) {
335 while ((fs = getfsent()) != NULL) {
336 if (BADTYPE(fs->fs_type))
337 continue;
338 if (checkvfsname(fs->fs_vfstype, vfslist))
339 continue;
340 if (hasopt(fs->fs_mntops, "noauto"))

--- 625 unchanged lines hidden ---
334 err(1, "getmntinfo");
335 if (all) {
336 while ((fs = getfsent()) != NULL) {
337 if (BADTYPE(fs->fs_type))
338 continue;
339 if (checkvfsname(fs->fs_vfstype, vfslist))
340 continue;
341 if (hasopt(fs->fs_mntops, "noauto"))

--- 625 unchanged lines hidden ---