LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGNAL_RLIM
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_EXIT_STATE
LINUX_GET_SB_HAS_STRUCT_VFSMOUNT
+ LINUX_STATFS_TAKES_DENTRY
LINUX_REFRIGERATOR
LINUX_LINUX_KEYRING_SUPPORT
LINUX_KEY_ALLOC_NEEDS_STRUCT_TASK
if test "x$ac_cv_linux_get_sb_has_struct_vfsmount" = "xyes"; then
AC_DEFINE(GET_SB_HAS_STRUCT_VFSMOUNT, 1, [define if your get_sb_nodev needs a struct vfsmount argument])
fi
+ if test "x$ac_cv_linux_statfs_takes_dentry" = "xyes"; then
+ AC_DEFINE(STATFS_TAKES_DENTRY, 1, [define if your statfs takes a dentry argument])
+ fi
if test "x$ac_cv_linux_func_a_writepage_takes_writeback_control" = "xyes" ; then
AC_DEFINE(AOP_WRITEPAGE_TAKES_WRITEBACK_CONTROL, 1, [define if your aops.writepage takes a struct writeback_control argument])
fi
ordering problems that could lead the kernel to ignore some group
membership for users. (Closes: #414911)
* Apply upstream fix for segfaults in pts rename. (Closes: #409184)
+ * Apply upstream fix to show reasonable free space numbers for AFS in
+ df. Without this fix, some programs which use df to check free space
+ may think that directories in AFS are full and prevent the user from
+ attempting to write files. (Closes: #415294)
* Translation updates:
- Dutch, thanks cobaco. (Closes: #413701)
- Portuguese, thanks Miguel Figueiredo. (Closes: #414800)
Priority: optional
Maintainer: Sam Hartman <hartmans@debian.org>
Uploaders: Russ Allbery <rra@debian.org>
-Build-Depends: debhelper (>= 5), libncurses5-dev, libpam0g-dev, bison, docbook-to-man, flex, perl, comerr-dev, libkrb5-dev
+Build-Depends: debhelper (>= 5), libncurses5-dev, libpam0g-dev, bison, docbook-to-man, flex, perl, comerr-dev, libkrb5-dev, autoconf
Standards-Version: 3.7.2
Package: openafs-client
configure-stamp:
@if test x"$(SYS_NAME)" = x"UNKNOWN" ; then exit 1 ; fi
dh_testdir
+ sh regen.sh
afslogsdir=/var/log/openafs afslocaldir=/etc/openafs/server-local \
sh configure \
--with-afs-sysname=$(SYS_NAME) --disable-kernel-module \
build-stamp:
dh_testdir
mkdir -p $(CURDIR)/debian/tmp
- cd doc/man-pages && perl generate-man
$(MAKE) install_nolibafs DESTDIR=$(CURDIR)/debian/tmp
chmod +x debian/afs-rootvol debian/afs-newcell
touch build-stamp
* dev, covered, s_rd_only, s_dirt, and s_type will be set by read_super.
*/
#if defined(AFS_LINUX26_ENV)
-static struct super_block *
#ifdef GET_SB_HAS_STRUCT_VFSMOUNT
+int
afs_get_sb(struct file_system_type *fs_type, int flags,
const char *dev_name, void *data, struct vfsmount *mnt)
#else
+static struct superblock *
afs_get_sb(struct file_system_type *fs_type, int flags,
const char *dev_name, void *data)
#endif
*/
#if defined(AFS_LINUX26_ENV)
int
+#if defined(STATFS_TAKES_DENTRY)
+afs_statfs(struct dentry *dentry, struct kstatfs *statp)
+#else
afs_statfs(struct super_block *sbp, struct kstatfs *statp)
+#endif
#elif defined(AFS_LINUX24_ENV)
int
afs_statfs(struct super_block *sbp, struct statfs *statp)
AFS_STATCNT(afs_statfs);
statp->f_type = 0; /* Can we get a real type sometime? */
+#if defined(STATFS_TAKES_DENTRY)
+ statp->f_bsize = dentry->d_sb->s_blocksize;
+#else
statp->f_bsize = sbp->s_blocksize;
+#endif
statp->f_blocks = statp->f_bfree = statp->f_bavail = statp->f_files =
statp->f_ffree = 9000000;
statp->f_fsid.val[0] = AFS_VFSMAGIC;
ac_cv_linux_get_sb_has_struct_vfsmount=no)])
AC_MSG_RESULT($ac_cv_linux_get_sb_has_struct_vfsmount)])
+AC_DEFUN([LINUX_STATFS_TAKES_DENTRY], [
+ AC_MSG_CHECKING([for dentry in statfs])
+ AC_CACHE_VAL([ac_cv_linux_statfs_takes_dentry], [
+ AC_TRY_KBUILD(
+[#include <linux/fs.h>
+#include <linux/statfs.h>],
+[
+extern int vfs_statfs(struct dentry *, struct kstatfs *);
+],
+ ac_cv_linux_statfs_takes_dentry=yes,
+ ac_cv_linux_statfs_takes_dentry=no)])
+ AC_MSG_RESULT($ac_cv_linux_statfs_takes_dentry)])
+
AC_DEFUN([LINUX_LINUX_KEYRING_SUPPORT], [
AC_MSG_CHECKING([for linux kernel keyring support])
AC_CACHE_VAL([ac_cv_linux_keyring_support], [