Whamcloud - gitweb
r=adilger(original author)
authorgreen <green>
Thu, 8 Dec 2005 18:21:13 +0000 (18:21 +0000)
committergreen <green>
Thu, 8 Dec 2005 18:21:13 +0000 (18:21 +0000)
fix mds_get_md to recognise empty lmm for files without objects.
This fixes error messages from chown on such files.

lustre/ChangeLog
lustre/mds/handler.c

index b47de56..b6c5bb9 100644 (file)
@@ -406,7 +406,12 @@ Details    : Check if the client we are about to send or are sending data to
             for which l_wait_event interface was extended to allow checking
             of exit condition at specified intervals).
 
-       
+Severity   : minor
+Frequency  : rare
+Description: 'bad disk LOV MAGIC: 0x00000000' error when chown'ing files without
+             objects
+Details    : Make mds_get_md to recognise empty md case and set lmm size to 0.
+
 
 ------------------------------------------------------------------------------
 
index 918e285..788d784 100644 (file)
@@ -507,6 +507,8 @@ int mds_get_md(struct obd_device *obd, struct inode *inode, void *md,
                 } else if (rc > 0) {
                         *size = rc;
                 }
+        } else {
+                *size = 0;
         }
         if (lock)
                 up(&inode->i_sem);