Print this page
NEX-5801 Snapshots left over after failed backups
Reviewed by: Rick Mesta <rick.mesta@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Revert "NEX-5801 Snapshots left over after failed backups"
This reverts commit f182fb95f09036db71fbfc6f0a6b90469b761f21.
NEX-5801 Snapshots left over after failed backups
Reviewed by: Rick Mesta <rick.mesta@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
NEX-2911 NDMP logging should use syslog and is too chatty
NEX-894 Default location of NDMP log file should be under /var/log

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ndmpd/ndmp/ndmpd_common.h
          +++ new/usr/src/cmd/ndmpd/ndmp/ndmpd_common.h
↓ open down ↓ 38 lines elided ↑ open up ↑
  39   39  /* Copyright (c) 1996, 1997 PDC, Network Appliance. All Rights Reserved */
  40   40  /*
  41   41   * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  42   42   */
  43   43  
  44   44  #ifndef _NDMP_COMMON_H
  45   45  #define _NDMP_COMMON_H
  46   46  
  47   47  #include <thread.h>
  48   48  #include <synch.h>
  49      -#include "ndmpd_log.h"
  50   49  #include "ndmp.h"
  51   50  #include <unistd.h>
  52   51  #include <sys/types.h>
  53   52  #include <rpc/rpc.h>
  54   53  #include <sys/stat.h>
  55   54  #include <stdio.h>
  56   55  #include <bsm/adt.h>
  57   56  #include <bsm/adt_event.h>
  58   57  
  59   58  
  60   59  #define XDR_AND_SIZE(func) (bool_t(*)(XDR*, ...))xdr_##func, sizeof (func)
  61   60  #define AUTH_REQUIRED   TRUE
  62   61  #define AUTH_NOT_REQUIRED       FALSE
  63   62  #define NDMP_EOM_MAGIC  "PRCMEOM"
       63 +#define NDMP_RCF_BASENAME       "NdmpBackup"
  64   64  #define KILOBYTE        1024
  65   65  
  66   66  #define INT_MAXCMD      12
  67   67  
  68   68  extern mutex_t ndmpd_zfs_fd_lock;
  69   69  
  70   70  /* Connection data structure. */
  71   71  typedef struct msg_info {
  72   72          ndmp_header mi_hdr;
  73   73          struct ndmp_msg_handler *mi_handler;
↓ open down ↓ 213 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX