files: Add comments about FLE_* stages

Submitted by Kirill Tkhai on July 12, 2017, 5:30 p.m.

Details

Message ID 149988060008.15054.1139692854175266333.stgit@localhost.localdomain
State Accepted
Series "files: Add comments about FLE_* stages"
Headers show

Commit Message

Kirill Tkhai July 12, 2017, 5:30 p.m.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 criu/include/files.h |    9 +++++++++
 1 file changed, 9 insertions(+)

Patch hide | download patch | download mbox

diff --git a/criu/include/files.h b/criu/include/files.h
index 22d5bc8c8..718677a7e 100644
--- a/criu/include/files.h
+++ b/criu/include/files.h
@@ -67,7 +67,16 @@  struct file_desc;
 
 enum {
 	FLE_INITIALIZED,
+	/*
+	 * FLE is open (via open() or socket() or etc syscalls), and
+	 * common file setting are set up (type-specific are not yet).
+	 * Most possible, the master was already served out.
+	 */
 	FLE_OPEN,
+	/*
+	 * File-type specific settings and preparations are finished,
+	 * and FLE is completely restored.
+	 */
 	FLE_RESTORED,
 };
 

Comments

Andrey Vagin July 18, 2017, 2:29 a.m.
Applied, thanks!
On Wed, Jul 12, 2017 at 08:30:26PM +0300, Kirill Tkhai wrote:
> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
> ---
>  criu/include/files.h |    9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/criu/include/files.h b/criu/include/files.h
> index 22d5bc8c8..718677a7e 100644
> --- a/criu/include/files.h
> +++ b/criu/include/files.h
> @@ -67,7 +67,16 @@ struct file_desc;
>  
>  enum {
>  	FLE_INITIALIZED,
> +	/*
> +	 * FLE is open (via open() or socket() or etc syscalls), and
> +	 * common file setting are set up (type-specific are not yet).
> +	 * Most possible, the master was already served out.
> +	 */
>  	FLE_OPEN,
> +	/*
> +	 * File-type specific settings and preparations are finished,
> +	 * and FLE is completely restored.
> +	 */
>  	FLE_RESTORED,
>  };
>  
>