Print this page
7798 vfs_mountfs passes junk in flags to domount
Reviewed by: Alexander Pyhalov <alp@rsu.ru>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Juraj Lutter <juraj.lutter@erigones.com>
Reviewed by: Marcel Telka <marcel@telka.sk>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/vfs.c
          +++ new/usr/src/uts/common/fs/vfs.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2014, Joyent, Inc. All rights reserved.
  25   25   * Copyright 2016 Toomas Soome <tsoome@me.com>
  26   26   * Copyright (c) 2016 by Delphix. All rights reserved.
  27   27   * Copyright 2016 Nexenta Systems, Inc.
       28 + * Copyright 2017 RackTop Systems.
  28   29   */
  29   30  
  30   31  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  31   32  /*        All Rights Reserved   */
  32   33  
  33   34  /*
  34   35   * University Copyright- Copyright (c) 1982, 1986, 1988
  35   36   * The Regents of the University of California
  36   37   * All Rights Reserved
  37   38   *
↓ open down ↓ 746 lines elided ↑ open up ↑
 784  785  /*
 785  786   * Mount required filesystem. This is done right after root is mounted.
 786  787   */
 787  788  static void
 788  789  vfs_mountfs(char *module, char *spec, char *path)
 789  790  {
 790  791          struct vnode *mvp;
 791  792          struct mounta mounta;
 792  793          vfs_t *vfsp;
 793  794  
      795 +        bzero(&mounta, sizeof (mounta));
 794  796          mounta.flags = MS_SYSSPACE | MS_DATA;
 795  797          mounta.fstype = module;
 796  798          mounta.spec = spec;
 797  799          mounta.dir = path;
 798  800          if (lookupname(path, UIO_SYSSPACE, FOLLOW, NULLVPP, &mvp)) {
 799  801                  cmn_err(CE_WARN, "Cannot find %s", path);
 800  802                  return;
 801  803          }
 802  804          if (domount(NULL, &mounta, mvp, CRED(), &vfsp))
 803  805                  cmn_err(CE_WARN, "Cannot mount %s", path);
↓ open down ↓ 3966 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX