Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7142-snmp-Types-and-specs-for-snmp-change_log_s...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7142-snmp-Types-and-specs-for-snmp-change_log_size-2.patch of Package erlang
From 9f151f6b60aa774cd6c5dc873820369fcc702e3b Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Tue, 9 Jan 2024 17:06:12 +0100 Subject: [PATCH 02/67] [snmp] Types and specs for snmp:change_log_size/2 --- lib/snmp/doc/src/snmp.xml | 32 +++++++++----------------------- lib/snmp/src/app/snmp.erl | 6 ++++++ 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/lib/snmp/doc/src/snmp.xml b/lib/snmp/doc/src/snmp.xml index 2ed6e5997c..28c2bf5748 100644 --- a/lib/snmp/doc/src/snmp.xml +++ b/lib/snmp/doc/src/snmp.xml @@ -358,18 +358,10 @@ <func> <name name="bits_to_octet_string" arity="1" clause_i="1" since=""/> - <!-- - <name since="">bits_to_octet_string(B) -> Val</name> - --> <fsummary>Convert an OCTET-STRING to BITS</fsummary> - <!-- - <type> - <v>Val = octet_string()</v> - </type> - --> <desc> <p>Utility function for converting a value of type <c>BITS</c> - to <c>OCTET-STRING</c>, according to RFC1906, section 8. </p> + to <c>OCTET-STRING</c>, according to RFC1906, section 8. </p> <marker id="read_mib"></marker> </desc> @@ -490,23 +482,17 @@ </func> <func> - <name since="">change_log_size(LogName, NewSize) -> ok | {error, Reason}</name> + <name name="change_log_size" arity="2" clause_i="1" since=""/> <fsummary>Change the size of the Audit Trail Log</fsummary> - <type> - <v>LogName = string()</v> - <v>NewSize = {MaxBytes, MaxFiles}</v> - <v>MaxBytes = integer()</v> - <v>MaxFiles = integer()</v> - <v>Reason = term()</v> - </type> <desc> <p>Changes the log size of the Audit Trail Log. The - application must be configured to use the audit trail log - function. Please refer to disk_log(3) in Kernel Reference - Manual for a description of how to change the log size. - </p> - <p>The change is permanent, as long as the log is not deleted. - That means, the log size is remembered across reboots.</p> + application must be configured to use the audit trail log + function. Please refer to disk_log(3) in Kernel Reference + Manual for a description of how to change the log size. + </p> + + <p>The change is permanent, as long as the log is not deleted. + That means, the log size is remembered across reboots.</p> <marker id="print_version_info"></marker> </desc> diff --git a/lib/snmp/src/app/snmp.erl b/lib/snmp/src/app/snmp.erl index 6eb596ce02..f53004252d 100644 --- a/lib/snmp/src/app/snmp.erl +++ b/lib/snmp/src/app/snmp.erl @@ -946,6 +946,12 @@ log_to_io(LogDir, Mibs, LogName, LogFile, Start, Stop) -> log_to_io(LogDir, Mibs, LogName, LogFile, Block, Start, Stop) -> snmp_log:log_to_io(LogName, Block, LogFile, LogDir, Mibs, Start, Stop). + +-spec change_log_size(LogName, NewSize) -> ok | {error, Reason} when + LogName :: string(), + NewSize :: disk_log:dlog_size(), + Reason :: term(). + change_log_size(LogName, NewSize) -> snmp_log:change_size(LogName, NewSize). -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor