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:
nick
2013-09-23 10:38:18 +01:00
parent 150e506780
commit e161121c7a
3 changed files with 0 additions and 15 deletions

View File

@@ -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 )
{
NULLCHECK( filename );

View File

@@ -65,9 +65,6 @@ struct server * server_create (
parse_port( s_port, &out->bind_to.v4 );
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_start_mirror = flexthread_mutex_create();
@@ -98,8 +95,6 @@ void server_destroy( struct server * serve )
serve->acl = NULL;
}
free( serve->filename_incomplete );
free( serve->nbd_client );
free( serve );
}

View File

@@ -29,8 +29,6 @@ struct server {
union mysockaddr bind_to;
/** (static) file name to serve */
char* filename;
/** file name of INCOMPLETE flag */
char* filename_incomplete;
/** TCP backlog for listen() */
int tcp_backlog;
/** (static) file name of UNIX control socket (or NULL if none) */