Print this page
OS-5291 lxbrand inotify02 LTP regression
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
OS-3294 add support for inotify
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/pcfs/pc_dir.c
          +++ new/usr/src/uts/common/fs/pcfs/pc_dir.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25      - * Copyright 2015 Joyent, Inc.
       25 + * Copyright 2016 Joyent, Inc.
  26   26   */
  27   27  
  28   28  #include <sys/param.h>
  29   29  #include <sys/errno.h>
  30   30  #include <sys/systm.h>
  31   31  #include <sys/sysmacros.h>
  32   32  #include <sys/buf.h>
  33   33  #include <sys/vfs.h>
  34   34  #include <sys/kmem.h>
  35   35  #include <sys/vnode.h>
↓ open down ↓ 783 lines elided ↑ open up ↑
 819  819                                  goto done;
 820  820                          }
 821  821                  }
 822  822                  if ((error = pc_nodeupdate(pcp)) != 0) {
 823  823                          goto done;
 824  824                  }
 825  825          }
 826  826  
 827  827          if (error == 0) {
 828  828                  vnevent_rename_src(PCTOV(pcp), PCTOV(dp), snm, ctp);
 829      -                if (dp != tdp)
 830      -                        vnevent_rename_dest_dir(PCTOV(tdp), ctp);
      829 +                vnevent_rename_dest_dir(PCTOV(tdp), PCTOV(pcp), tnm, ctp);
 831  830          }
 832  831  
 833  832  done:
 834  833          if (tpcp != NULL)
 835  834                  VN_RELE(PCTOV(tpcp));
 836  835          VN_RELE(PCTOV(pcp));
 837  836  
 838  837          return (error);
 839  838  }
 840  839  
↓ open down ↓ 863 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX