Bug 66333 - can't handle large files
Summary: can't handle large files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lsof
Version: 7.3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-06-07 23:32 UTC by Jon Willeke
Modified: 2007-04-18 16:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-06-07 23:42:06 UTC
Embargoed:


Attachments (Terms of Use)
create a 4 GB file (1.54 KB, text/plain)
2002-06-07 23:34 UTC, Jon Willeke
no flags Details

Description Jon Willeke 2002-06-07 23:32:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (WinNT; U)

Description of problem:
I created a 16 GB database file.  The lsof command doesn't seem to like it:

  $ /usr/sbin/lsof data.dat
  lsof: status error on data.dat: Value too large for defined data type
  lsof 4.51 (latest revision at ftp://vic.cc.purdue.edu/pub/tools/unix/lsof)
   usage: [-?abhlnNoOPRstUvV] [-c c] [+|-d s] [+D D] [+|-f]
   [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+|-M] [-o [o]] [-p s]
   [+|-r [t]] [-S [t]] [-T [t]] [-u s] [+|-w] [--] [names]
  Use the ``-h'' option to get more help information.

A Deja search determined that this was likely due to the command not supporting large files.

Version-Release number of selected component (if applicable): 4.51-2


How reproducible:
Always

Steps to Reproduce:
1. Create a large file (attached lseek.c creates data.dat, a sparse 4 GB file)
2. /usr/sbin/lsof data.dat

Actual Results:  Command displayed "Value too large for defined data type" warning.

Expected Results:  Unless the file is in use, the command should have no output.

Additional info:

I found the following in the lsof FAQ list: "Large file support is defined dialect by dialect in the lsof source files and Configure script."  Version 4.51, included with RH 
7.3, does not define large file support for the linux dialect.  More recent versions, including the current 4.63, do.

Comment 1 Jon Willeke 2002-06-07 23:34:58 UTC
Created attachment 60144 [details]
create a 4 GB file

Comment 2 Jon Willeke 2002-06-07 23:41:59 UTC
You can also use dd to create a file that demonstrates this problem:

  $ dd if=/dev/null of=foo.dat bs=1 count=1 seek=4000000000
  0+0 records in
  0+0 records out
  $ /usr/sbin/lsof foo.dat
  lsof: status error on foo.dat: Value too large for defined data type
  ...

Comment 3 Jakub Jelinek 2002-06-21 15:37:16 UTC
Should be fixed in lsof-4.63-1 in rawhide.


Note You need to log in before you can comment on or make changes to this bug.