X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fread_ffs.c;h=d440d95147a0cd255ee495f0869d4eb3c96de13c;hb=d5f2066cac82e84ba43e22c9718e381732f8454d;hp=18164cf9bf98bd46eea13d1e3f343cb72a773647;hpb=5d7f82cb4369fdc37afb19b1733d9a4d43a541d8;p=chaz%2Ftar diff --git a/src/read_ffs.c b/src/read_ffs.c index 18164cf..d440d95 100644 --- a/src/read_ffs.c +++ b/src/read_ffs.c @@ -1,7 +1,7 @@ /* Read files directly from the fast file system Copyright (C) 1992 Free Software Foundation - This file is part of GNU Tar. +This file is part of GNU Tar. GNU Tar is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -18,40 +18,5 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -dev_t lastdev; -ino_t lastino; - -struct dinode ino; -struct fs fs; -off_t offset; -int device_fd; - -int *sindir, *dindir, *tindir; -int sindirblk, dindirblk, tindirblk; - -read_raw_file (fd, buf, len) - int fd; - char *buf; - int len; -{ - struct stat st; - off_t ntoread; - int log_blkno, phys_blkno; - - fstat (fd, &st); - if (st.st_dev != lastdev) - new_device (st.st_dev); - - if (st.st_ino != lastino) - new_inode (st.st_ino); - - /* Only read single blocks at a time */ - if (len > fs.fs_bsize) - len = fs.fs_bsize; - - /* Prune to the length of the file */ - if (offset + len > ino.di_size) - len = ino.di_size - offset; - - log_blkno = lblkno (&fs, blkno); - + +