patch-2.0.35 linux/fs/dquot.c
Next file: linux/fs/exec.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Mon Jul 13 13:47:34 1998
- Orig file:
v2.0.34/linux/fs/dquot.c
- Orig date:
Mon Jul 13 13:46:37 1998
diff -u --recursive --new-file v2.0.34/linux/fs/dquot.c linux/fs/dquot.c
@@ -692,7 +692,7 @@
short cnt;
struct dquot *tmp;
- if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) {
+ if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode) || S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) {
for (cnt = 0; cnt < MAXQUOTAS; cnt++) {
if (type != -1 && cnt != type)
continue;
@@ -843,6 +843,15 @@
blocks = isize_to_blocks(inode->i_size, BLOCK_SIZE);
else
blocks = (inode->i_blocks / 2);
+
+
+ /*
+ * This shouldnt be needed but the goal is to fix 2.0 not
+ * do things in best of Torvalds style. Thats for 2.1...
+ */
+
+ if(S_ISFIFO(inode->i_mode)||S_ISSOCK(inode->i_mode))
+ blocks = 0;
/*
* Build the transfer_from and transfer_to lists and check quotas to see
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov