1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2010 Silicon Graphics, Inc. All Rights Reserved.
11 int main(int argc, char **argv)
16 fd = open(argv[1], O_RDWR|O_CREAT, 0666);
17 for (i = 1; i < 9100; i++) {
18 for (j = 0; j < 1024; j++)
21 if (write(fd,buf,253*4*sizeof(int))!= 253*4*sizeof(int)) {
22 printf("Write did not return correct amount\n");
26 if ((i % 9) == 0 && i < 9001)
27 lseek(fd, 4096 * 110,SEEK_CUR);