changing silly rename scheme

instead of appending a fh value when creating a silly rename name,
we'll append a timestamp. using fh value was problematic because
it was creating a filename longer than 64char long which is
currently out max_filename_size.
This commit is contained in:
Olga Kornievskaia 2012-03-27 14:46:36 -04:00 committed by unknown
parent 61998b5968
commit 4d18cf9ce7
4 changed files with 16 additions and 17 deletions

View file

@ -209,7 +209,7 @@ static int handle_nfs41_rename(setattr_upcall_args *args)
path_fh_init(&dst_dir, &dst_path);
fh_copy(&dst_dir.fh, &state->parent.fh);
create_silly_rename(&dst_path, &state->file.fh, &dst_name);
create_silly_rename(&dst_path, &dst_name);
dprintf(1, "silly rename: %s -> %s\n", src_name->name, dst_name.name);
/* break any delegations and truncate before silly rename */