Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!apple!motcsd!silma!cichlid!aab From: aab@cichlid.com (Andy Burgess) Newsgroups: comp.unix.xenix.sco Subject: Re: 1Gbyte file on a 130Mb drive (fsdb) Keywords: big file fsdb Message-ID: <1991Jun25.064730.11188@cichlid.com> Date: 25 Jun 91 06:47:30 GMT References: <124@comix.UUCP> Reply-To: aab@cichlid.com (Andy Burgess) Distribution: na Organization: Independent Software Contractor Lines: 41 In article <124@comix.UUCP> jeffl@comix.Santa-Cruz.CA.US (Jeff Liebermann) writes: >How does one deal with a bogus 1Gigabyte file? >I have a Xenix 2.3.3 system that has ls magically >declare a 45Mb accounting file as 1Gbyte huge. > >ls declares it to be 1Gb big. >du agrees. >df -v gives the correct filesystem size. >fsck "Possible wrong file size I=140" (no other errors). > >To add to the problem, I'm having difficulty doing >a backup before attacking. > >compress bombs due to lack of working diskspace. >tar, cpio, afio insist on trying to backup 1Gb of something. >dd at least works and I can fit the 130Mb filesystem on one >QIC-150 tape (whew). To add to the wierdness, all the >reports generated by the application (Armor Systems Excalibur >Acctg) work perfectly as if nothing were wrong. > Could be a sparse file. I'm not sure if Xenix supports sparse files but on modern unices you can open a file, seek a billion bytes or so into it and write one byte. Only one sector of data is allocated (plus some inode sectors). Reading the file returns zeros for the unwritten sectors. ls reports the offset of the last byte in the file. Tar, cpio et al traditionally do not detect sparse files and merrily save a gigabyte of zeros (although I would have expected compress to work eventually). >Obviously a job for fsdb... I don't think you have anything to fix. Well maybe a bug in the application that created the file. Don't know about the fsck message though... Andy -- Andy Burgess Independent Software Consultant and Developer aab@cichlid.com uunet!silma!cichlid!aab