The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
command to find out total size of a specific file size (spread over the server) abhinov SUN Solaris 3 08-08-2007 03:48 AM
Exceed Login old_tex HP-UX 0 05-31-2006 08:01 AM
Telnet/Exceed kar1 UNIX for Dummies Questions & Answers 1 03-01-2005 04:09 AM
Exceed aojmoj UNIX for Advanced & Expert Users 2 06-21-2003 11:19 PM
Exceed subsitutions? E-Quality UNIX for Dummies Questions & Answers 1 09-19-2001 07:12 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-24-2004
Registered User
 

Join Date: Feb 2002
Posts: 55
Question Max file size can't exceed 2 GB

We have Sun OS 5.9 we are doing a backup process (ProC program) that uses the function...

fprintf(fp,"%s;%s;%s;%s;%s;%ld;%ld;%ld;%ld;%s;%s;%s;%d;%s;%s;%s;%ld;%s;%s;%s;%ld;%ld;%s;%ld;%s;%ld;% s;%s;%c%c",x_contrno, x_subno, x_b_subno,x_transdate,x_last_traffic_date,BillAmt_s, x_billamount_int, x_duration
, x_act_duration,x_third_party_no, x_call_type,x_tariffclass,x_party_flag,x_chargetype,x_vol_group,x_billcode,x_no_packets,v_SUBSCR_TYP E.arr,v_AREA.arr,v_TARIFF_GROUP.arr,file_id0,d_GROSS_AMOUNT,v_UPDATED,d_RATE_POS
,v_DISC_TYPE.arr,d_OTHER_AMOUNT,v_OTHER_GROUP.arr,v_TARIFF_PROFILE.arr,0x0D,0x0A);

and fp is declared such that

FILE *fp (fp is pointer to file)

MY problem is that I can't exceed 2GB as file size ......

What are the options availabe to increase the file size to be unlimited............?

and I need to know if this file size depends on the filesystem itself...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-25-2004
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 387
What kind of filesystem is it? If it is VxFS (Veritas file system) you can set the largefiles flag in /etc/vfstab and reboot. If you want to increase it on the fly there is a command, I believe it is called fsadm, which can do that. Check your Veritas man pages for details, but I know you can do it.

If it is UFS I'm not sure if you can change it once the filesystem has been created.
Reply With Quote
  #3 (permalink)  
Old 02-25-2004
Registered User
 

Join Date: Feb 2002
Posts: 55
UFS

I have UFS file system...
!!!!!
Please if anybody help I would appreciate that......
Reply With Quote
  #4 (permalink)  
Old 02-25-2004
Registered User
 

Join Date: Feb 2002
Posts: 55
largefiles

Mounting

/homes on /dev/dsk/c1t0d0s6 read/write/setuid/intr/largefiles/xattr/onerror=pani
c/dev=1d8000e on Wed Feb 11 20:59:31 2004

means the file system supported large files ....

relating the C program......
Reply With Quote
  #5 (permalink)  
Old 02-25-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,355
Post the output from:
isainfo -b
isainfo -v
isainfo -kv
All of these need to say "64". Read the man page for your compiler. Are you putting it 64-bit mode? If not then you must be using the stuff mentioned in "man lfcompile".

To see if the filesystem supports largefiles --- try it. Use some program that you did not write to attempt to create a largefile. "man largefile" will list the os commands that are large file aware.
Reply With Quote
  #6 (permalink)  
Old 02-25-2004
Registered User
 

Join Date: Feb 2002
Posts: 55
Information

[Billtest]tabs:/homes/tabs>isainfo -b
64
[Billtest]tabs:/homes/tabs>isainfo -v
64-bit sparcv9 applications
32-bit sparc applications
[Billtest]tabs:/homes/tabs>isainfo -kv
64-bit sparcv9 kernel modules
[Billtest]tabs:/homes/tabs>
Reply With Quote
  #7 (permalink)  
Old 02-26-2004
Registered User
 

Join Date: Feb 2002
Posts: 55
CC 32bit

Please if you help me in an axample (small C program write to file more than 2GB) using fprintf or fwrite ?

as it is an important issue here to backup local calls details table.....
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0