Thanks, Paul. And somebody's pointed out to me that the allowed input range is 0,99999999999 (93 Gb).
Thanks!! :) Aleksey On Mon, Aug 29, 2011 at 6:24 PM, Paul Krizak <paul.kri...@amd.com> wrote: > Well since cfengine edits the file in memory and then does a comparison > to the on-disk version before making commits, presumably you should be > careful to not edit any files larger than the free memory on your system. > > > Paul Krizak 7171 Southwest Pkwy MS B200.3A > MTS Systems Engineer Austin, TX 78735 > Advanced Micro Devices Desk: (512) 602-8775 > Linux/Unix Systems Engineering Cell: (512) 791-0686 > Global IT Infrastructure Fax: (512) 602-0468 > > On 08/29/2011 06:16 PM, Aleksey Tsalolikhin wrote: >> Found this under max_file_size: >> >> A local, per-file sanity check to make sure the file editing is >> sensible. If this is set to zero, the check is disabled and any size >> may be edited. The default value of max_file_size is determined by the >> global control body setting, See editfilesize in agent, whose default >> value is 100k. >> >> So my only question now is just how big files can cfengine handle? >> >> Best, >> -at >> >> >> On Mon, Aug 29, 2011 at 6:13 PM, Aleksey Tsalolikhin >> <atsaloli.t...@gmail.com> wrote: >>> I just tried to use CFEngine to edit /etc/services and it refused: >>> >>> !! File /etc/services is bigger than the limit edit.max_file_size = >>> 362149> 100000 bytes >>> File /etc/services was marked for editing but could not be opened >>> >>> I found the file size is configurable -- is there anything to watch >>> out for in bumping this up? Why is there a limit? >>> >>> Best, >>> Aleksey >>> >>> >>> Reference manual states: >>> >>> 5.2.17 editfilesize >>> >>> Type: int >>> >>> Allowed input range: 0,99999999999 >>> >>> Default value: 10000 >>> >>> Synopsis: Integer limit on maximum text file size to be edited >>> >>> Example: >>> >>> body agent control >>> { >>> editfilesize => "120k"; >>> } >>> >>> >>> Notes: >>> >>> The global setting for the file-editing safety-net (this value may be >>> overridden on a per-promise basis with max_file_size, See >>> edit_defaults in files. The default value for editfilesize is 100k. >>> Note the use of special units is allowed, See Datatypes in CFEngine 3, >>> for a list of permissible suffixes. >>> >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine >> > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine