Bug 66340

Summary: fuser can't handle large files
Product: [Retired] Red Hat Linux Reporter: Jon Willeke <j.willeke>
Component: psmiscAssignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-26 15:16:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
configure.in: LFS symbol (requires autoconf 2.53) none

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.