Bug 66340 - fuser can't handle large files
Summary: fuser can't handle large files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: psmisc
Version: 7.3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-06-08 05:13 UTC by Jon Willeke
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-10-26 15:16:11 UTC
Embargoed:


Attachments (Terms of Use)
configure.in: LFS symbol (requires autoconf 2.53) (340 bytes, patch)
2002-10-26 15:09 UTC, Jon Willeke
no flags Details | Diff

Description Jon Willeke 2002-06-08 05:13:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020408

Description of problem:
The fuser command can't handle files larger than 2 GB.  It should be compiled
with large file support by adding `getconf LFS_CFLAGS` to CFLAGS.


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


How reproducible:
Always

Steps to Reproduce:
1. create a large file
   dd if=/dev/null of=foo bs=1 seek=2150000000
2. use the file
   tail -f foo
3. call fuser in another process
   /sbin/fuser foo	

Actual Results:  The fuser command prints the following warning:

  foo: Value too large for defined data type

Expected Results:  If the file is in use, fuser should display a PID. 
Otherwise, it should have no output.

Additional info:

I logged this as bug 566083 at psmisc.sf.net, but large file support can be
added in the spec file, which already modifies the CFLAGS variable:

  %build
  perl -pi -e "s,^CFLAGS =,CFLAGS = $RPM_OPT_FLAGS -D_GNU_SOURCE,g" */Makefile.*

Adding `getconf LFS_CFLAGS` worked for me.

Comment 1 Mike A. Harris 2002-10-26 05:06:03 UTC
I've just taken over this package recently, and will investigate the
issue.  Thanks for reporting it to us.

Comment 2 Jon Willeke 2002-10-26 15:09:44 UTC
Created attachment 82210 [details]
configure.in: LFS symbol (requires autoconf 2.53)

Comment 3 Jon Willeke 2002-10-26 15:16:03 UTC
This has been fixed upstream in psmisc-21.2.  I've attached a patch to configure.in that defines AC_SYS_LARGEFILE.  This symbol is supported by autoconf-2.53, but not autoconf-2.13.

See Debian bug 129157 for more background (the psmisc maintainer is also the Debian packager).

Comment 4 Mike A. Harris 2002-11-13 16:40:15 UTC
Thanks, fixed in rawhide psmisc 21.2-2 now.  Please reopen if it fails.


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