diff -Naur thunar-1.6.10.org/thunar/Makefile.in thunar-1.6.10/thunar/Makefile.in
--- thunar-1.6.10.org/thunar/Makefile.in	2015-05-22 21:47:32.000000000 +0100
+++ thunar-1.6.10/thunar/Makefile.in	2015-09-27 11:22:06.226796289 +0100
@@ -490,7 +490,7 @@
 LIBNOTIFY_REQUIRED_VERSION = @LIBNOTIFY_REQUIRED_VERSION@
 LIBNOTIFY_VERSION = @LIBNOTIFY_VERSION@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ -lrpcsvc
 LIBSM_CFLAGS = @LIBSM_CFLAGS@
 LIBSM_LDFLAGS = @LIBSM_LDFLAGS@
 LIBSM_LIBS = @LIBSM_LIBS@
diff -Naur thunar-1.6.10.org/thunar/thunar-gio-extensions.c thunar-1.6.10/thunar/thunar-gio-extensions.c
--- thunar-1.6.10.org/thunar/thunar-gio-extensions.c	2015-05-22 14:25:36.000000000 +0100
+++ thunar-1.6.10/thunar/thunar-gio-extensions.c	2015-09-27 11:21:57.767770643 +0100
@@ -38,6 +38,16 @@
 #include <thunar/thunar-private.h>
 #include <thunar/thunar-util.h>
 
+/* NFS Quota stuff */
+
+#include<sys/quota.h>
+#include<sys/vfs.h>
+#include<mntent.h>
+#include<sys/stat.h>
+#include<strings.h>
+#include<rpc/rpc.h>  /* black magic */
+#include<rpcsvc/rquota.h> /* RPC quota call info */
+#include<netdb.h> /* gethostbyname */
 
 
 GFile *
@@ -362,6 +372,85 @@
 }
 
 
+int get_remote_quota(long *qfree, long *qtotal,
+              char *host, char *path)
+{
+  struct hostent *hp;
+
+  struct getquota_args rquota_arg;
+  struct getquota_rslt rquota_result;
+
+  CLIENT *client=NULL;
+  int socket=RPC_ANYSOCK;
+  struct timeval timeout;
+  struct sockaddr_in server_addr;
+  enum clnt_stat client_status;
+  long rbs, result;
+
+  static int count=0;
+
+  if (getenv("THUNAR_QCOUNT")) fprintf(stderr,"TQ: %d\n",count);
+
+  count++;
+
+  bzero((void*)&rquota_result,sizeof(struct getquota_rslt));
+
+  rquota_arg.gqa_pathp=path; /* A pointer to the path */
+  rquota_arg.gqa_uid=getuid();
+
+/* Wonder if that host exists */
+
+  hp=gethostbyname(host);
+  if (hp==NULL) return 1;
+
+/* Set a sensible time out */
+
+  timeout.tv_usec=0;
+  timeout.tv_sec=3;
+
+  bcopy(hp->h_addr,(caddr_t)&server_addr.sin_addr,hp->h_length);
+  server_addr.sin_family=AF_INET;
+  server_addr.sin_port=0;
+
+  client=clntudp_create(&server_addr,RQUOTAPROG,RQUOTAVERS,
+              timeout,&socket);
+
+  if (client==NULL) return 2;
+
+  client->cl_auth=authunix_create_default();
+
+  client_status=clnt_call(client,RQUOTAPROC_GETQUOTA,xdr_getquota_args,
+     (char*)&rquota_arg,xdr_getquota_rslt,(char*)&rquota_result,timeout);
+
+
+  if (client_status!=RPC_SUCCESS){return 3;}
+
+
+/* Extract info */
+#ifdef linux
+#define gqr_rquota getquota_rslt_u.gqr_rquota
+#endif
+
+  if (rquota_result.status==Q_NOQUOTA) return 4;
+  if (rquota_result.status==Q_EPERM) return 5;
+  if (rquota_result.status!=Q_OK &&
+       rquota_result.status!=Q_NOQUOTA) return 6 ;
+
+  rbs=rquota_result.gqr_rquota.rq_bsize;
+
+  if (rquota_result.gqr_rquota.rq_bsoftlimit){
+    result=((double)(rquota_result.gqr_rquota.rq_bsoftlimit-
+                     rquota_result.gqr_rquota.rq_curblocks)*rbs);
+
+    *qfree=result;
+    *qtotal=rquota_result.gqr_rquota.rq_bsoftlimit*rbs;
+
+    return 0;
+  }
+  return 1;
+
+}
+
 
 /**
  * thunar_g_file_get_free_space:
@@ -384,6 +473,9 @@
 {
   GFileInfo *filesystem_info;
   gboolean   success = FALSE;
+  char *name;
+
+  /* MJR */
 
   _thunar_return_val_if_fail (G_IS_FILE (file), FALSE);
 
@@ -397,6 +489,102 @@
         {
           *fs_free_return = g_file_info_get_attribute_uint64 (filesystem_info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
           success = g_file_info_has_attribute (filesystem_info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
+          /* check for NFS quotas. Try to cache the results of stating one's
+             way through /proc/mounts 
+          */
+          name=g_file_get_path(file);
+          if (name){
+            struct dent {
+              dev_t dev; char *type; char *host; char *path;
+              time_t time; long quota; long total;
+            };
+            static struct dent *cache=NULL;
+            struct dent *p;
+            static int ncache=0;
+            int i,fill;
+            struct stat sbuf;
+            dev_t dev;
+            FILE *f;
+            struct mntent mnt;
+            long quota,total;
+            char mbuf[4096],*sep;
+
+            stat(name,&sbuf);
+            dev=sbuf.st_dev;
+
+            for(i=0;i<ncache;i++)
+              if (dev==cache[i].dev) break;
+
+            if ((!ncache)||(dev!=cache[i].dev)){
+
+              f=setmntent("/proc/mounts","r");
+                if (getenv("THUNAR_QCOUNT"))
+                  fprintf(stderr,"T Walk: %d\n",ncache);
+              while (getmntent_r(f,&mnt,mbuf,4096)){
+                if (stat(mnt.mnt_dir,&sbuf)) continue;
+                if (sbuf.st_dev==dev) break;
+              }
+              endmntent(f);
+              if (sbuf.st_dev==dev){
+                p=realloc(cache,(ncache+1)*sizeof(struct dent));
+                if (p){
+                  cache=p;
+                  cache[ncache].dev=dev;
+                  fill=1;
+                  cache[ncache].type=malloc(strlen(mnt.mnt_type)+1);
+                  if (!cache[ncache].type) fill=0;
+                  if (fill) strcpy(cache[ncache].type,mnt.mnt_type);
+                  if (!strcmp(mnt.mnt_type,"nfs")){
+                    sep=strstr(mnt.mnt_fsname,":/");
+                    if (sep){
+                      *sep=0;
+                      cache[ncache].host=malloc(strlen(mnt.mnt_fsname)+1);
+                      if (!cache[ncache].host) fill=0;
+                      cache[ncache].path=malloc(strlen(sep+1)+1);
+                      if (!cache[ncache].path) fill=0;
+                    }
+                    if (fill&&sep){
+                      strcpy(cache[ncache].host,mnt.mnt_fsname);
+                      strcpy(cache[ncache].path,sep+1);
+                    }
+                    else
+                      cache[ncache].host=cache[ncache].path=NULL;
+                  }
+                  cache[i].time=0;
+                  cache[i].quota=0;
+                  i=ncache;
+                  ncache++;
+                }
+              }
+            }
+            if (ncache&&(dev==cache[i].dev)){
+              if (!strcmp(cache[i].type,"nfs")){
+                if (cache[i].host&&cache[i].path){
+                  quota=0;
+                  total=0;
+                  if (time(NULL)-cache[i].time<5){
+                    quota=cache[i].quota;
+                    total=cache[i].total;
+                  }
+                  else if (!get_remote_quota(&quota,&total,cache[i].host,
+                                             cache[i].path)){
+                    cache[i].time=time(NULL);
+                    cache[i].quota=quota;
+                    cache[i].total=total;
+                  }
+                  if ((quota)&&(quota<*fs_free_return))
+                    *fs_free_return=quota;
+                  if ((quota)&&(fs_size_return)){
+                    *fs_size_return=total;
+                    g_free(name);
+                    g_object_unref (filesystem_info);
+                    return success;
+                  }
+                }
+              }
+            }
+            g_free(name);
+          }
         }
 
       if (fs_size_return != NULL)
diff -Naur thunar-1.6.10.org/thunar/Makefile.am thunar-1.6.10/thunar/Makefile.am
--- thunar-1.6.10.org/thunar/Makefile.am	2016-09-15 13:55:47.000000000 +0100
+++ thunar-1.6.10/thunar/Makefile.am	2016-09-15 13:57:02.000000000 +0100
@@ -242,7 +242,8 @@
 	$(LIBNOTIFY_LIBS)						\
 	$(LIBSM_LIBS)							\
 	$(LIBXFCE4UI_LIBS)						\
-	$(XFCONF_LIBS)
+	$(XFCONF_LIBS)                                                  \
+        -lrpcsvc
 
 thunar_DEPENDENCIES =							\
 	$(top_builddir)/thunarx/libthunarx-$(THUNARX_VERSION_API).la
diff -Naur thunar-1.6.10.old/debian/changelog thunar-1.6.10/debian/changelog
--- thunar-1.6.10.old/debian/changelog	2016-09-15 14:19:03.000000000 +0100
+++ thunar-1.6.10/debian/changelog	2016-09-15 14:19:58.000000000 +0100
@@ -1,3 +1,10 @@
+thunar (1.6.10-2ubuntu1mjr) xenial; urgency=medium
+
+  [ Michael Rutter ]
+  * Add NFS quota support
+
+ -- Michael Rutter <mjr19@cam.ac.uk>  Thu, 15 Sep 2016 13:45:00 +0100
+
 thunar (1.6.10-2ubuntu1) xenial; urgency=medium
 
   [ Unit 193 ]
