Ignore:
Timestamp:
Sep 30, 2007, 3:42:50 AM (18 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.0pre1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/torture/locktest2.c

    r1 r77  
    66   This program is free software; you can redistribute it and/or modify
    77   it under the terms of the GNU General Public License as published by
    8    the Free Software Foundation; either version 2 of the License, or
     8   the Free Software Foundation; either version 3 of the License, or
    99   (at your option) any later version.
    1010   
     
    1515   
    1616   You should have received a copy of the GNU General Public License
    17    along with this program; if not, write to the Free Software
    18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     17   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1918*/
    2019
     
    137136}       
    138137
    139 static void print_brl(SMB_DEV_T dev, SMB_INO_T ino, struct process_id pid,
     138static void print_brl(struct file_id id, struct server_id pid,
    140139                      enum brl_type lock_type,
    141140                      enum brl_flavour lock_flav,
    142                       br_off start, br_off size)
    143 {
    144         printf("%6d   %05x:%05x    %s  %.0f:%.0f(%.0f)\n",
    145                (int)procid_to_pid(&pid), (int)dev, (int)ino,
     141                      br_off start, br_off size,
     142                      void *private_data)
     143{
     144        printf("%6d   %s    %s  %.0f:%.0f(%.0f)\n",
     145               (int)procid_to_pid(&pid), file_id_string_tos(&id),
    146146               lock_type==READ_LOCK?"R":"W",
    147147               (double)start, (double)start+size-1,(double)size);
     
    260260                               ret[0], ret[1]);
    261261                }
    262                 if (showall) brl_forall(print_brl);
     262                if (showall) brl_forall(print_brl, NULL);
    263263                if (ret[0] != ret[1]) return False;
    264264        } else if (r2 < LOCK_PCT+UNLOCK_PCT) {
     
    275275                               ret[0], ret[1]);
    276276                }
    277                 if (showall) brl_forall(print_brl);
     277                if (showall) brl_forall(print_brl, NULL);
    278278                if (!hide_unlock_fails && ret[0] != ret[1]) return False;
    279279        } else {
     
    291291                        printf("reopen conn=%u fstype=%u f=%u\n",
    292292                               conn, fstype, f);
    293                         brl_forall(print_brl);
     293                        brl_forall(print_brl, NULL);
    294294                }
    295295        }
Note: See TracChangeset for help on using the changeset viewer.