- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fseek error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 05:44 AM
тАО07-05-2006 05:44 AM
fseek error
I have a problem with fseek here.It gives me an error 27 (EFBIG File too large). The file on which i am doing the fseek has reached 1.99GB by size at that time.
Is there any LARGE FILE restriction for fseek. If so how can i resolve this.
Regards
Amith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 05:49 AM
тАО07-05-2006 05:49 AM
Re: fseek error
The filesystem was created without largefiles enabled.
Two choices.
1) use newfs with the option -o largefiles to recreate the filesystem.
2) use fsadm to convert the filesystem for large files.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 05:56 AM
тАО07-05-2006 05:56 AM
Re: fseek error
Is the file you're working on currently larger than 2GB? If so, then the filesystem where it resides is probably not the issue.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 05:59 AM
тАО07-05-2006 05:59 AM
Re: fseek error
There are some other files in the same file system whcih is of size greater than 4GB. If it is a file system problem then , such files will not be there.
Is there any restriction in fseek ??
Many Thanks
Amith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 06:34 AM
тАО07-05-2006 06:34 AM
Re: fseek error
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=857114&admit=-682735245+1152124371842+28353475
hope it helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2006 06:45 AM
тАО07-05-2006 06:45 AM
Re: fseek error
One approach that would make your code more portable and POSIX compliant would be to use lseek(), read(), and write() using file descriptors rather than the higher level *FILE abstractions although, you would also need to handle the buffering yourself as well if needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2006 01:48 AM
тАО07-08-2006 01:48 AM
Re: fseek error
I tried changing the call to fseeko and compiled using the _LARGEFILE_SOURCE option , still the error persists.
I checkmed the file system attributes in /etc/fstab in that also "largefiles" option is enabled. It is a vxfs file system.
Any inputs ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2006 11:58 AM
тАО07-08-2006 11:58 AM
Re: fseek error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 11:22 PM
тАО07-09-2006 11:22 PM
Re: fseek error
I inserted a ulimit(UL_GETFSIZE) in my program and it displayed 4194303( 4194303 * 512 = 2GB).
But when i type the command from the user prompt , it displays the ulimit as unlimited. The ulimit -a output is
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 488280
stack(kbytes) 58592
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1024
Could you please tell me when this can happen and how can i resolve it .
Thanks
Amith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 02:08 AM
тАО07-10-2006 02:08 AM
Re: fseek error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 01:05 AM
тАО07-11-2006 01:05 AM
Re: fseek error
Can i set it to a higher value by using the UL_SETFSIZE option.
And also could you please tell me whether the output of the ulimit command is a long int or double ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 02:15 AM
тАО07-11-2006 02:15 AM
Re: fseek error
But it shows only 4194303 (2GB) when i display the ulimit.
Could you please tell me why this is happening. The ulimit -a output of the user shows that the file size limit is unlimited and the file system can handle files greater than 2GB (largfiles enabled).
Regards
Amith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 03:36 AM
тАО07-11-2006 03:36 AM
Re: fseek error
Execute these two commands:
ulimit -Hf
ulimit -Sf
and post the resukt. I have a funny feeling that you are not running the POSIX shell.
I would also modify your little C program to get the current ulimit before trying to set it. A regular user is not allowed to increase ulimit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 04:59 PM
тАО07-11-2006 04:59 PM
Re: fseek error
$>ulimit -Hf
unlimited
$>ulimit -Sf
unlimited
$>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 05:31 PM
тАО07-11-2006 05:31 PM
Re: fseek error
But executing the programs in POSIX.
Will that be a problem.