Print this page
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/udfs/udf_dir.c
          +++ new/usr/src/uts/common/fs/udfs/udf_dir.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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   * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2014, Joyent, Inc. All rights reserved.
  23   24   */
  24   25  
  25   26  #include <sys/types.h>
  26   27  #include <sys/t_lock.h>
  27   28  #include <sys/param.h>
  28   29  #include <sys/time.h>
  29   30  #include <sys/systm.h>
  30   31  #include <sys/sysmacros.h>
  31   32  #include <sys/resource.h>
  32   33  #include <sys/signal.h>
↓ open down ↓ 522 lines elided ↑ open up ↑
 555  556                  /*
 556  557                   * If it's all good, send events after locks are dropped
 557  558                   * but before vnodes are released.
 558  559                   */
 559  560                  if (err == 0) {
 560  561                          if (tip) {
 561  562                                  vnevent_rename_dest(ITOV(tip), ITOV(tdp),
 562  563                                      namep, ctp);
 563  564                          }
 564  565  
 565      -                        if (sdp != tdp) {
 566      -                                vnevent_rename_dest_dir(ITOV(tdp), ctp);
 567      -                        }
      566 +                        vnevent_rename_dest_dir(ITOV(tdp), ITOV(tip),
      567 +                            namep, ctp);
 568  568                  }
 569  569  
 570  570                  /*
 571  571                   * The following VN_RELE() was moved from the
 572  572                   * DE_RENAME case above
 573  573                   */
 574  574                  if (tip) {
 575  575                          VN_RELE(ITOV(tip));
 576  576                  }
 577  577          }
↓ open down ↓ 1372 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX