flexnbd: Remove unused ".INCOMPLETE" file code
The original idea was that we'd create a .incomplete file at the destination for mirroring, but that code was removed some time ago. This is all dead, now
This commit is contained in:
@@ -213,14 +213,6 @@ int flexnbd_default_deny( struct flexnbd * flexnbd )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char * flexnbd_incomplete_filename( struct flexnbd * flexnbd )
|
|
||||||
{
|
|
||||||
NULLCHECK( flexnbd );
|
|
||||||
struct server * serve = flexnbd_server( flexnbd );
|
|
||||||
|
|
||||||
return serve->filename_incomplete;
|
|
||||||
}
|
|
||||||
|
|
||||||
void make_writable( const char * filename )
|
void make_writable( const char * filename )
|
||||||
{
|
{
|
||||||
NULLCHECK( filename );
|
NULLCHECK( filename );
|
||||||
|
@@ -65,9 +65,6 @@ struct server * server_create (
|
|||||||
parse_port( s_port, &out->bind_to.v4 );
|
parse_port( s_port, &out->bind_to.v4 );
|
||||||
|
|
||||||
out->filename = s_file;
|
out->filename = s_file;
|
||||||
out->filename_incomplete = xmalloc(strlen(s_file)+11+1);
|
|
||||||
strcpy(out->filename_incomplete, s_file);
|
|
||||||
strcpy(out->filename_incomplete + strlen(s_file), ".INCOMPLETE");
|
|
||||||
|
|
||||||
out->l_acl = flexthread_mutex_create();
|
out->l_acl = flexthread_mutex_create();
|
||||||
out->l_start_mirror = flexthread_mutex_create();
|
out->l_start_mirror = flexthread_mutex_create();
|
||||||
@@ -98,8 +95,6 @@ void server_destroy( struct server * serve )
|
|||||||
serve->acl = NULL;
|
serve->acl = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
free( serve->filename_incomplete );
|
|
||||||
|
|
||||||
free( serve->nbd_client );
|
free( serve->nbd_client );
|
||||||
free( serve );
|
free( serve );
|
||||||
}
|
}
|
||||||
|
@@ -29,8 +29,6 @@ struct server {
|
|||||||
union mysockaddr bind_to;
|
union mysockaddr bind_to;
|
||||||
/** (static) file name to serve */
|
/** (static) file name to serve */
|
||||||
char* filename;
|
char* filename;
|
||||||
/** file name of INCOMPLETE flag */
|
|
||||||
char* filename_incomplete;
|
|
||||||
/** TCP backlog for listen() */
|
/** TCP backlog for listen() */
|
||||||
int tcp_backlog;
|
int tcp_backlog;
|
||||||
/** (static) file name of UNIX control socket (or NULL if none) */
|
/** (static) file name of UNIX control socket (or NULL if none) */
|
||||||
|
Reference in New Issue
Block a user