Whamcloud - gitweb
- make 16K bytes/inode ratio only for really big devices > 100Gb. This is
authortappro <tappro>
Sat, 4 Nov 2006 15:30:35 +0000 (15:30 +0000)
committertappro <tappro>
Sat, 4 Nov 2006 15:30:35 +0000 (15:30 +0000)
  workaround against -ENOSPC on OST due to lack of inodes

lustre/utils/mkfs_lustre.c

index 3929474..3a5c0fe 100644 (file)
@@ -471,7 +471,8 @@ int make_lustre_backfs(struct mkfs_opts *mop)
                         /* Allocate fewer inodes on large OST devices.  Most
                            filesystems can be much more aggressive than even
                            this. */
-                        if ((IS_OST(&mop->mo_ldd) && (device_sz > 1000000)))
+                        if ((IS_OST(&mop->mo_ldd) &&
+                            (device_sz > 100000000))) /* 100 Gb */
                                 bytes_per_inode = 16384;
 
                         if (bytes_per_inode > 0) {