FsExport { public boolean hasAllSquash() { return _allSquash; } private  FsExport(String path, FsExportBuilder builder); static int getExportIndex(String path); String getPath(); @Override String toString(); boolean isAllowed(InetAddress client); boolean isTrusted(); String client(); IO ioMode(); int getIndex(); boolean checkAcls(); Sec getSec(); boolean hasAllSquash(); int getAnonUid(); int getAnonGid(); boolean isWithDcap(); boolean isAllRoot(); boolean isWithPnfs(); boolean isPrivilegedClientPortRequired(); List<layouttype4> getLayoutTypes(); static String normalize(String path); @Override int hashCode(); @Override boolean equals(Object obj); final static int DEFAULT_ANON_UID; final static int DEFAULT_ANON_GID; }
@Test public void testAllSquash() throws UnknownHostException { FsExport export = _exportFile.getExport("/all_squash", InetAddress.getByName("192.169.2.2")); assertTrue("all_squash option not detected", export.hasAllSquash()); }
@Test public void testNoSquash() throws UnknownHostException { FsExport export = _exportFile.getExport("/no_squash", InetAddress.getByName("192.169.2.2")); assertFalse("all_squash not defined, but detected", export.hasAllSquash()); }