As big as your memory allows. BUT, this is meant as a safety feature. 
Most of the time it only makes sense to edit relatively small files.
If you picked up a huge file like a binary by mistake, you might do some 
damage. So think of this as an "are you sure?" dialogue

On 08/30/2011 03:16 AM, 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

Reply via email to