Kern Sibbald schrieb: > On Thursday 01 October 2009 18:38:27 Andreas Piesk wrote: >> Hi list, >> >> i played around with scratchpools and noticed that every media has a >> scratchpoolid: >> >> CREATE TABLE Media ( >> .. >> ScratchPoolId INTEGER UNSIGNED REFERENCES Pool DEFAULT 0, >> .. >> ); >> >> pools can have a scratchpool, but medias? what's the purpose of >> Media.ScratchPoolId? >> > > The values in the Pool resource are defaults used when creating Volumes > (media). Thus each Volume has its own ScratchPool, which can be different > for each Volume (if you want).
thanks for the answer but i still don't get it. we have recyclepool and scratchpool. recyclepool specifies the pool where to put the recycled volume, scratch pool specifies the pool where to look for volumes when one is needed and none available in the current pool. as far as i understand it, scratchpool makes only sense for pools, not for volumes. recyclepool is valid for both pools and volumes. do i miss something? maybe an example when media.scratchpoolid is used would help me to understand it. if media.scratchpoolid is useful for something, how can i set it after the volume has been created? if i read the source correct, media.scratchpoolid is set to pool.scratchpoolid at volume creation. if i update volumes from pool, the scratchpoolid of all media remains 0 which means not set. using bconsole i cannot set the scratchpool of a volume. i have the feeling i'm missing something totally obvious here. regards, -ap ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
