0f349359a8bebbd67c7bd7bb732285dee71905fc
chmalee
  Tue May 7 08:43:51 2024 -0700
Start of requiring hub,genome,and file type with each file submission

diff --git src/hg/lib/userdata.c src/hg/lib/userdata.c
index f25fc29..810cefe 100644
--- src/hg/lib/userdata.c
+++ src/hg/lib/userdata.c
@@ -116,30 +116,36 @@
 return userHubs;
 }
 
 struct userFiles *listFilesForUserHub(char *userName, char *hubName)
 /* Get all the files for a particular hub for a particular user */
 {
 struct userFiles *userListing;
 AllocVar(userListing);
 char *path = getHubDataDir(userName, hubName);
 struct fileInfo *fiList = listDirX(path,NULL,FALSE);
 userListing->userName = userName;
 userListing->fileList = fiList;
 return userListing;
 }
 
+long long getMaxUserQuota(char *userName)
+/* Return how much space is allocated for this user or the default */
+{
+return HUB_SPACE_DEFAULT_QUOTA;
+}
+
 long long checkUserQuota(char *userName)
 /* Return the amount of space a user is currently using */
 {
 long long quota = 0;
 struct userHubs *hub, *userHubs = listHubsForUser(userName);
 for (hub = userHubs; hub != NULL; hub = hub->next)
     {
     struct userFiles *ufList = listFilesForUserHub(userName, hub->hubName);
     struct fileInfo *fi;
     if (ufList)
         {
         for (fi = ufList->fileList; fi != NULL; fi = fi->next)
             {
             quota += fi->size;
             }