Changeset 77 for trunk/samba/source/torture/locktest2.c
- Timestamp:
- Sep 30, 2007, 3:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/torture/locktest2.c
r1 r77 6 6 This program is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2of the License, or8 the Free Software Foundation; either version 3 of the License, or 9 9 (at your option) any later version. 10 10 … … 15 15 16 16 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/>. 19 18 */ 20 19 … … 137 136 } 138 137 139 static void print_brl( SMB_DEV_T dev, SMB_INO_T ino, struct process_id pid,138 static void print_brl(struct file_id id, struct server_id pid, 140 139 enum brl_type lock_type, 141 140 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), 146 146 lock_type==READ_LOCK?"R":"W", 147 147 (double)start, (double)start+size-1,(double)size); … … 260 260 ret[0], ret[1]); 261 261 } 262 if (showall) brl_forall(print_brl );262 if (showall) brl_forall(print_brl, NULL); 263 263 if (ret[0] != ret[1]) return False; 264 264 } else if (r2 < LOCK_PCT+UNLOCK_PCT) { … … 275 275 ret[0], ret[1]); 276 276 } 277 if (showall) brl_forall(print_brl );277 if (showall) brl_forall(print_brl, NULL); 278 278 if (!hide_unlock_fails && ret[0] != ret[1]) return False; 279 279 } else { … … 291 291 printf("reopen conn=%u fstype=%u f=%u\n", 292 292 conn, fstype, f); 293 brl_forall(print_brl );293 brl_forall(print_brl, NULL); 294 294 } 295 295 }
Note:
See TracChangeset
for help on using the changeset viewer.