changing silly rename scheme take 2

reverting patch 4d18cf9ce7.

it was wrong to append the timestamp to create a silly renamed name
because it was not a reproducable name.

instead, take an fh and md5(fh) then append as before.
This commit is contained in:
Olga Kornievskaia 2012-04-06 17:01:50 -04:00
parent 7fe39f0a53
commit 92d3500bd2
4 changed files with 56 additions and 17 deletions

View file

@ -223,7 +223,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, &dst_name);
create_silly_rename(&dst_path, &state->file.fh, &dst_name);
dprintf(1, "silly rename: %s -> %s\n", src_name->name, dst_name.name);
/* break any delegations and truncate before silly rename */