X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fvolume.c;h=812becdd15ed34260a0fb9843916b42f9f2726c9;hb=9dcbf3fefe6c867c338d50d34d09423088a04bc5;hp=0196e833b591e1866bd21ca68763f25ccb12773d;hpb=4a353b1260885aa1841e9d3a9c9a75804b299774;p=netatalk.git diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c index 0196e833..812becdd 100644 --- a/etc/afpd/volume.c +++ b/etc/afpd/volume.c @@ -1475,6 +1475,7 @@ static int getvolspace(struct vol *vol, getvolspace_done: if (vol->v_limitsize) { +#if 0 bstring cmdstr; if ((cmdstr = bformat("du -sh \"%s\" 2> /dev/null | cut -f1", vol->v_path)) == NULL) return AFPERR_MISC; @@ -1510,6 +1511,7 @@ getvolspace_done: buf[strlen(buf) - 2] = 0; /* now buf contains only digits */ long long used = atoll(buf) * multi; +#endif LOG(log_debug, logtype_afpd, "volparams: used on volume: %llu bytes", used); *xbtotal = min(*xbtotal, (vol->v_limitsize * 1024 * 1024)); @@ -2495,12 +2497,6 @@ void setvoltime(AFPObj *obj, struct vol *vol) { struct timeval tv; - /* just looking at vol->v_mtime is broken seriously since updates - * from other users afpd processes never are seen. - * This is not the most elegant solution (a shared memory between - * the afpd processes would come closer) - * [RS] */ - if ( gettimeofday( &tv, NULL ) < 0 ) { LOG(log_error, logtype_afpd, "setvoltime(%s): gettimeofday: %s", vol->v_path, strerror(errno) ); return;