Lines Matching refs:volinfo
74 #include <atalk/volinfo.h>
85 struct volinfo volinfo; /* needed by pack.c:idxname() */
312 /* Load .volinfo file */
313 if (loadvolinfo(volpath, &volinfo) == -1) {
314 dbd_log( LOGSTD, "Not a Netatalk volume at '%s', no .volinfo file at '%s/.AppleDesktop/.volinfo' or unknown volume options", volpath, volpath);
317 if (vol_load_charsets(&volinfo) == -1) {
323 if (volinfo.v_vfs_ea != AFPVOL_EA_AD && volinfo.v_vfs_ea != AFPVOL_EA_SYS) {
324 dbd_log( LOGSTD, "Unknown Extended Attributes option: %u", volinfo.v_vfs_ea);
330 if (stat(volinfo.v_dbpath, &st) != 0) {
332 dbd_log( LOGSTD, "Can't stat dbpath \"%s\": %s", volinfo.v_dbpath, strerror(errno));
335 if ((mkdir(volinfo.v_dbpath, 0755)) != 0) {
341 /* Put "/.AppleDB" at end of volpath, get path from volinfo file */
342 if ( (strlen(volinfo.v_dbpath) + strlen("/.AppleDB")) > MAXPATHLEN ) {
346 strncpy(dbpath, volinfo.v_dbpath, MAXPATHLEN - strlen("/.AppleDB"));
379 if ((flags & DBD_FLAGS_FORCE) && rebuild && (volinfo.v_flags & AFPVOL_CACHE)) {
439 if (cmd_dbd_scanvol(dbd, &volinfo, flags) < 0) {