xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 754] xfs_quota tries to open devicefiles & pipes

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 754] xfs_quota tries to open devicefiles & pipes
From: bugzilla-daemon@xxxxxxxxxxx
Date: Thu, 19 Apr 2007 01:40:41 -0700
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=754





------- Additional Comments From leo.baltus@xxxxxxxxxxxxxx  2007-04-19 01:40 
CST -------
Created an attachment (id=220)
 --> (http://oss.sgi.com/bugzilla/attachment.cgi?id=220&action=view)
Fixes this bug (for me)

I have added a lstat and a check routine to prevent devices, sockets, fifos and

symlinks from beeing opened, instead it reports
xfs_quota: skipping special file /d/0/foo/bar

Note: When setting op project quota, i think that the current API is not
approriate, it would be better if one could set the projectid on a given inode,
without opening the actual inode, which is the cause of this bug, it would make
much more efficient as we could avoid useless stat()'s. Also with this patch,
we're skipping special files which do take some (inode) space which is not
accounted for.

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>