search for: size_set

Displaying 7 results from an estimated 7 matches for "size_set".

2020 Apr 24
1
[PATCH nbdkit] golang: Pass Plugin and Connection by reference not value.
...+ "io/ioutil" + "libguestfs.org/nbdkit" + "os" + "strconv" + "unsafe" +) + +var pluginName = "disk" + +type DiskPlugin struct { + nbdkit.Plugin +} + +type DiskConnection struct { + nbdkit.Connection + fd *os.File +} + +var size uint64 +var size_set = false + +func (p *DiskPlugin) Config(key string, value string) error { + if key == "size" { + var err error + size, err = strconv.ParseUint(value, 0, 64) + if err != nil { + return err + } + size_set = true + return nil + } else { + return nbdkit.PluginError{Errmsg: "unkno...
2020 Apr 21
0
Re: [PATCH nbdkit v2] Add the ability to write plugins in golang.
...> index 00000000..f5b1a33b > --- /dev/null > +++ b/plugins/golang/test/test.go type TestPlugin struct { nbdkit.Plugin } type TestPluginConnection struct { nbdkit.PluginConnection ...other per-connection fields... } var pluginName = "test" var size uint64 var size_set = false func (p TestPlugin) Config(key string, value string) error { if key == "size" { var err error size, err = strconv.ParseUint(value, 0, 64) if err != nil { return err } size_set = true return nil } else { return nbdkit.PluginError{Errmsg: "unknow...
2009 Dec 03
3
imap crash with backtrace (1.2.8)
...;maildir_save_add" #2 0x0808cb13 in maildir_copy_hardlink (ctx=0x9fbcf98, mail=0x9fe5070) at maildir-copy.c:246 src_mbox = 0x9f87e98 do_ctx = {dest_path = 0x9fecdd8, dest_fname = 0xb7e68c88 <Address 0xb7e68c88 out of bounds>, base_end_pos = 108, size_set = 0, vsize_set = 0, success = 1, preserve_filename = 1} path = 0x4 <Address 0x4 out of bounds> filename = <value optimized out> __PRETTY_FUNCTION__ = "maildir_copy_hardlink" #3 maildir_copy (ctx=0x9fbcf98, mail=0x9fe5070) at maildir-copy.c:2...
2020 Apr 21
2
[PATCH nbdkit v2] Add the ability to write plugins in golang.
...FTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +package main + +import ( + "C" + "libguestfs.org/nbdkit" + "strconv" + "unsafe" +) + +type TestPlugin struct { + nbdkit.Plugin +} + +var pluginName = "test" +var size uint64 +var size_set = false + +func (p TestPlugin) Config(key string, value string) error { + if key == "size" { + var err error + size, err = strconv.ParseUint(value, 0, 64) + if err != nil { + return err + } + size_set = true + return nil + } else { + return nbdkit.PluginError{Errmsg: "unknow...
2011 Mar 02
3
Segfault in managesieve with "sieve_extensions = -redirect"
...0) at sieve-extensions.c:256 extensions = <value optimized out> ext = <value optimized out> #2 0x00007fb2db426914 in sieve_init (env=0x40d700, context=<value optimized out>, debug=false) at sieve.c:83 svinst = 0x2385680 uint_setting = 0 size_setting = 37179544 pool = 0x2385660 #3 0x00000000004085ff in managesieve_capabilities_dump () at managesieve-capabilities.c:125 svinst = <value optimized out> notify_cap = <value optimized out> #4 0x0000000000408af5 in main (argc=4, argv=0x237d370) at main.c:273...
2020 Apr 23
2
Re: [PATCH nbdkit v2] Add the ability to write plugins in golang.
...MAGE. + */ + +package main + +import ( + "C" + "libguestfs.org/nbdkit" + "strconv" + "unsafe" +) + +var pluginName = "test" + +type TestPlugin struct { + nbdkit.Plugin +} + +type TestConnection struct { + nbdkit.Connection +} + +var size uint64 +var size_set = false + +func (p TestPlugin) Load() { + nbdkit.Debug("golang code running in the .load callback") +} + +func (p TestPlugin) Unload() { + nbdkit.Debug("golang code running in the .unload callback") +} + +func (p TestPlugin) Config(key string, value string) error { + if key == &...
2014 May 02
2
When the subject portion of an e-mail contains a control character, dovecot.sieve terminates unexpectatedly.
Hello. We have currently set dovecot.sieve to insert the text "[SPAM]" at the beginning of an e-mail's subject when it's X-Spam-Score is above 80%. After we set our system as stated the following errors occur: 1) When an e-mail's subject contains control characters like [Ctrl+V|^V], dovecot.sieve terminates with an error and an e-mail is not able to be sent. When a MIME