Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/lib/sysquotas.c

    r414 r745  
    178178        {"xfs", sys_get_xfs_quota,      sys_set_xfs_quota},
    179179#endif /* HAVE_XFS_QUOTAS */
     180#ifdef HAVE_NFS_QUOTAS
     181        {"nfs", sys_get_nfs_quota,      sys_set_nfs_quota},
     182#endif /* HAVE_NFS_QUOTAS */
    180183        {NULL,  NULL,                   NULL}
    181184};
     
    301304                        DEBUG (3, ("Parsed output of get_quota, ...\n"));
    302305
    303 #ifdef LARGE_SMB_OFF_T
    304306                        DEBUGADD (5,(
    305307                                "qflags:%u curblocks:%llu softlimit:%llu hardlimit:%llu\n"
     
    310312                                (long long unsigned)dp->isoftlimit,(long long unsigned)dp->ihardlimit,
    311313                                (long long unsigned)dp->bsize));
    312 #else /* LARGE_SMB_OFF_T */
    313                         DEBUGADD (5,(
    314                                 "qflags:%u curblocks:%lu softlimit:%lu hardlimit:%lu\n"
    315                                 "curinodes:%lu isoftlimit:%lu ihardlimit:%lu bsize:%lu\n",
    316                                 dp->qflags,(long unsigned)dp->curblocks,
    317                                 (long unsigned)dp->softlimit,(long unsigned)dp->hardlimit,
    318                                 (long unsigned)dp->curinodes,
    319                                 (long unsigned)dp->isoftlimit,(long unsigned)dp->ihardlimit,
    320                                 (long unsigned)dp->bsize));
    321 #endif /* LARGE_SMB_OFF_T */
    322314                        return 0;
    323315                }
     
    360352                }
    361353
    362 #ifdef LARGE_SMB_OFF_T
    363354                if (asprintf(&syscmd,
    364355                        "%s \"%s\" %d %d "
     
    371362                        return -1;
    372363                }
    373 #else /* LARGE_SMB_OFF_T */
    374                 if (asprintf(&syscmd,
    375                         "%s \"%s\" %d %d "
    376                         "%u %lu %lu "
    377                         "%lu %lu %lu ",
    378                         set_quota_command, path, qtype, _id, dp->qflags,
    379                         (long unsigned)dp->softlimit,(long unsigned)dp->hardlimit,
    380                         (long unsigned)dp->isoftlimit,(long unsigned)dp->ihardlimit,
    381                         (long unsigned)dp->bsize) < 0) {
    382                         return -1;
    383                 }
    384 #endif /* LARGE_SMB_OFF_T */
    385364
    386365                DEBUG (3, ("get_quota: Running command %s\n", syscmd));
Note: See TracChangeset for help on using the changeset viewer.