From 0cb8ef099fd54b7dcc052ff7ecb809f624a15c7f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 15 Aug 2003 03:54:45 +0000 Subject: Print out position info, ensure NT_RENAME info level only works in a directory. Jeremy. (This used to be commit d623a51da07e3077b5dc2f92787a3ca848feb113) --- source4/torture/raw/qfileinfo.c | 3 +++ source4/torture/raw/setfileinfo.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c index b1f508cae8..43ab04460f 100644 --- a/source4/torture/raw/qfileinfo.c +++ b/source4/torture/raw/qfileinfo.c @@ -661,6 +661,9 @@ BOOL torture_raw_qfileinfo(int dummy) NAME_PATH_CHECK("INTERNAL_INFORMATION", internal_information, device); NAME_PATH_CHECK("INTERNAL_INFORMATION", internal_information, inode); NAME_PATH_CHECK("POSITION_INFORMATION", position_information, position); + printf("fnum pos = %.0f, fname pos = %.0f\n", + (double)s2->position_information.out.position, + (double)s1->position_information.out.position ); NAME_PATH_CHECK("MODE_INFORMATION", mode_information, mode); NAME_PATH_CHECK("ALIGNMENT_INFORMATION", alignment_information, alignment_requirement); NAME_PATH_CHECK("ATTRIBUTE_TAG_INFORMATION", attribute_tag_information, attrib); diff --git a/source4/torture/raw/setfileinfo.c b/source4/torture/raw/setfileinfo.c index 0048f2e1b0..7645289128 100644 --- a/source4/torture/raw/setfileinfo.c +++ b/source4/torture/raw/setfileinfo.c @@ -419,6 +419,10 @@ BOOL torture_raw_sfileinfo(int dummy) sfinfo.rename_information.in.new_name = path_fname_new+strlen(BASEDIR)+1; CHECK_CALL_PATH(RENAME_INFORMATION, NT_STATUS_OBJECT_NAME_COLLISION); + sfinfo.rename_information.in.new_name = fnum_fname_new; + sfinfo.rename_information.in.overwrite = 1; + CHECK_CALL_FNUM(RENAME_INFORMATION, NT_STATUS_NOT_SUPPORTED); + sfinfo.rename_information.in.new_name = fnum_fname_new+strlen(BASEDIR)+1; sfinfo.rename_information.in.overwrite = 1; CHECK_CALL_FNUM(RENAME_INFORMATION, NT_STATUS_OK); -- cgit