• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source3/modules/

Lines Matching refs:tsmd

79 	struct tsmsm_struct **tsmd = (struct tsmsm_struct **)pptr;
80 if(!tsmd) return;
81 TALLOC_FREE(*tsmd);
90 struct tsmsm_struct *tsmd;
99 tsmd = TALLOC_ZERO_P(handle, struct tsmsm_struct);
100 if (!tsmd) {
109 TALLOC_FREE(tsmd);
115 /* Get 'hsm script' and 'dmapi attribute' parameters to tsmd context */
116 tsmd->hsmscript = lp_parm_talloc_string(SNUM(handle->conn), tsmname,
118 talloc_steal(tsmd, tsmd->hsmscript);
120 tsmd->attrib_name = lp_parm_talloc_string(SNUM(handle->conn), tsmname,
122 talloc_steal(tsmd, tsmd->attrib_name);
124 tsmd->attrib_value = lp_parm_talloc_string(SNUM(handle->conn), "tsmsm",
126 talloc_steal(tsmd, tsmd->attrib_value);
132 tsmd->online_ratio = FILE_IS_ONLINE_RATIO;
134 tsmd->online_ratio = strtof(fres, NULL);
135 if (tsmd->online_ratio > 1.0 ||
136 tsmd->online_ratio <= 0.0) {
138 tsmd->online_ratio, (float)FILE_IS_ONLINE_RATIO));
143 SMB_VFS_HANDLE_SET_DATA(handle, tsmd, tsmsm_free_data,
151 struct tsmsm_struct *tsmd = (struct tsmsm_struct *) handle->data;
165 stbuf->st_ex_size * tsmd->online_ratio) {
169 (long)stbuf->st_ex_size, tsmd->online_ratio));
198 strlcpy((char *)&dmname.an_chars[0], tsmd->attrib_name, sizeof(dmname.an_chars));
200 if (tsmd->attrib_value != NULL) {
201 buflen = strlen(tsmd->attrib_value);
205 buf = talloc_zero_size(tsmd, buflen);
235 if (tsmd->attrib_value != NULL) {
237 memcmp(buf, tsmd->attrib_value, buflen) == 0);
259 struct tsmsm_struct *tsmd = (struct tsmsm_struct *) handle->data;
268 (long)sbuf.st_ex_size, tsmd->online_ratio));
270 sbuf.st_ex_size * tsmd->online_ratio);
344 struct tsmsm_struct *tsmd = (struct tsmsm_struct *) handle->data;
348 if (tsmd->hsmscript == NULL) {
355 command = talloc_asprintf(tsmd, "%s offline \"%s\"", tsmd->hsmscript, path);