summaryrefslogtreecommitdiff
blob: 775b820dac213909bb432bac2da313486a04d190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
quota was meant to be turned off in the 1.42 release as it's half
baked, but the commit to disable didn't really work either.

--- a/lib/quota/Makefile.in
+++ b/lib/quota/Makefile.in
@@ -76,7 +76,8 @@
 		$(DESTDIR)$(includedir)/quota $(DESTDIR)$(man3dir) \
 		$(DESTDIR)$(libdir)/pkgconfig
 
-install:: all installdirs
+install::
+disabled:: all installdirs
 	$(E) "	INSTALL_DATA $(libdir)/libquota.a"
 	$(Q) $(INSTALL_DATA) libquota.a $(DESTDIR)$(libdir)/libquota.a
 	-$(Q) $(RANLIB) $(DESTDIR)$(libdir)/libquota.a
--- a/configure
+++ b/configure
@@ -5224,11 +5224,11 @@
 
 fi
 
-LIBQUOTA='$(LIB)/libquota'$LIB_EXT
+LIBQUOTA=
 DEPLIBQUOTA=$LIBQUOTA
-STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
+STATIC_LIBQUOTA=
 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
-PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
+PROFILED_LIBQUOTA=
 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
 
 
--- a/lib/quota/mkquota.h
+++ b/lib/quota/mkquota.h
@@ -60,4 +60,17 @@
 int quota_file_exists(ext2_filsys fs, int qtype, int fmt);
 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, int qtype);
 
+#define quota_init_context(a, ...)
+#define quota_data_inodes(a, ...)
+#define quota_data_add(a, ...)
+#define quota_data_sub(a, ...)
+#define quota_write_inode(a, ...)
+#define quota_update_inode(a, ...) 0
+#define quota_compute_usage(a, ...)
+#define quota_release_context(a, ...)
+#define quota_remove_inode(a, ...)
+#define quota_is_on(a, ...)
+#define quota_file_exists(a, ...) -1
+#define quota_set_sb_inum(a, ...)
+
 #endif  /* __QUOTA_QUOTAIO_H__ */
--- a/lib/quota/quotaio.h
+++ b/lib/quota/quotaio.h
@@ -167,4 +167,7 @@
 const char *quota_get_qf_path(const char *mntpt, int qtype, int fmt,
 			      char *path_buf, size_t path_buf_size);
 
+#define quota_get_qf_name(a, ...)
+#define quota_get_qf_path(a, ...)
+
 #endif /* GUARD_QUOTAIO_H */