/** * Tests that root directory properties persist afetr the #format() operation. * * @throws Exception If failed. */ @Test public void testRootPropertiesPersistAfterFormat() throws Exception { if(!propertiesSupported()) return; if (mode != PRIMARY && !(igfsSecondaryFileSystem instanceof IgfsSecondaryFileSystemImpl)) { // In case of Hadoop dual mode only user name, group name, and permission properties are updated, // an arbitrary named property is just ignored: checkRootPropertyUpdate("foo", "moo", null); checkRootPropertyUpdate(IgfsUtils.PROP_PERMISSION, "0777", "0777"); } else { checkRootPropertyUpdate("foo", "moo", "moo"); checkRootPropertyUpdate(IgfsUtils.PROP_PERMISSION, "0777", "0777"); } }