Home | History | Annotate | Download | only in tools

Lines Matching refs:st

32 void print_stat(struct stat64 *st)
35 printf("dev [%d:%d]\n", major(st->st_dev), minor(st->st_dev));
36 printf("ino [0x%8lx : %ld]\n", st->st_ino, st->st_ino);
37 printf("mode [0x%8x : %d]\n", st->st_mode, st->st_mode);
38 printf("nlink [0x%8lx : %ld]\n", st->st_nlink, st->st_nlink);
39 printf("uid [0x%8x : %d]\n", st->st_uid, st->st_uid);
40 printf("gid [0x%8x : %d]\n", st->st_gid, st->st_gid);
41 printf("size [0x%8lx : %ld]\n", st->st_size, st->st_size);
42 printf("blksize [0x%8lx : %ld]\n", st->st_blksize, st->st_blksize);
43 printf("blocks [0x%8lx : %ld]\n", st->st_blocks, st->st_blocks);
47 void stat_bdev(struct stat64 *st, unsigned int *start_lba)
55 sprintf(devname, "/dev/block/%d:%d", major(st->st_dev), minor(st->st_dev));
88 struct stat64 st;
110 if (fstat64(fd, &st) < 0) {
116 stat_bdev(&st, &start_lba);
118 total_blks = (st.st_size + st.st_blksize - 1) / st.st_blksize;
122 print_stat(&st);
150 ext.f_pos = i * st.st_blksize;