]>
Dogcows Code - chaz/tar/blob - src/read_ffs.c
18164cf9bf98bd46eea13d1e3f343cb72a773647
1 /* Read files directly from the fast file system
2 Copyright (C) 1992 Free Software Foundation
4 This file is part of GNU Tar.
6 GNU Tar is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 2, or (at
9 your option) any later version.
11 GNU Tar is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Tar; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
29 int *sindir
, *dindir
, *tindir
;
30 int sindirblk
, dindirblk
, tindirblk
;
32 read_raw_file (fd
, buf
, len
)
39 int log_blkno
, phys_blkno
;
42 if (st
.st_dev
!= lastdev
)
43 new_device (st
.st_dev
);
45 if (st
.st_ino
!= lastino
)
46 new_inode (st
.st_ino
);
48 /* Only read single blocks at a time */
49 if (len
> fs
.fs_bsize
)
52 /* Prune to the length of the file */
53 if (offset
+ len
> ino
.di_size
)
54 len
= ino
.di_size
- offset
;
56 log_blkno
= lblkno (&fs
, blkno
);
This page took 0.03556 seconds and 3 git commands to generate.