Whamcloud - gitweb
- fixed missed -1 in kernel_read()
authoryury <yury>
Thu, 21 Apr 2005 14:13:04 +0000 (14:13 +0000)
committeryury <yury>
Thu, 21 Apr 2005 14:13:04 +0000 (14:13 +0000)
lustre/llite/llite_gns.c

index 913e8e2..5c711b2 100644 (file)
@@ -200,7 +200,7 @@ ll_gns_mount_object(struct dentry *dentry, struct vfsmount *mnt)
         cleanup_phase = 4;
         
         /* read data from mount object. */
-        rc = kernel_read(mntinfo_fd, 0, datapage, PAGE_SIZE);
+        rc = kernel_read(mntinfo_fd, 0, datapage, PAGE_SIZE - 1);
         if (rc < 0) {
                 CERROR("can't read mount object %*s/%*s data, err %d\n",
                        (int)dentry->d_name.len, dentry->d_name.name,