Whamcloud - gitweb
fix pre/post conditions
authornikita <nikita>
Thu, 4 May 2006 20:33:08 +0000 (20:33 +0000)
committernikita <nikita>
Thu, 4 May 2006 20:33:08 +0000 (20:33 +0000)
lustre/include/linux/dt_object.h

index f596589..daad374 100644 (file)
@@ -145,6 +145,7 @@ struct dt_object_operations {
         /*
          * Create new object on this device.
          *
+         * precondition: !lu_object_exists(ctxt, &dt->do_lu);
          * postcondition: ergo(result == 0, lu_object_exists(ctxt, &dt->do_lu));
          */
         int   (*do_object_create)(struct lu_context *ctxt, struct dt_object *dt,
@@ -153,6 +154,8 @@ struct dt_object_operations {
          * Destroy existing object.
          *
          * precondition: lu_object_exists(ctxt, &dt->do_lu);
+         * postcondition: ergo(result == 0,
+         *                     !lu_object_exists(ctxt, &dt->do_lu));
          */
         int   (*do_object_destroy)(struct lu_context *ctxt,
                                    struct dt_object *dt, struct thandle *th);