CIFS: Add new mount option to set owner uid and gid from special sids in acl
[linux-2.6-block.git] / fs / open.c
index 8aeb08bb278bd92978a823ec63a2c9593bfe7460..a7719cfb7257e9b19b2ff50efeb5366f98f4d24b 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -300,7 +300,8 @@ int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
         * Let individual file system decide if it supports preallocation
         * for directories or not.
         */
-       if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode))
+       if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode) &&
+           !S_ISBLK(inode->i_mode))
                return -ENODEV;
 
        /* Check for wrap through zero too */