nfs « Development « Java I/O Q&A





1. Java file delete on NFS drive    stackoverflow.com

I am trying to delete a file on a NFS drive. I have had other problems manipulating files on remote drives such as moving a file - however i got around it ...

2. Polling NFS share from java breaks filesystem    stackoverflow.com

We've got two servers having a directory mapped via NFS to each of them. Process on server A (shell script) places file into mapped drive. Java process on server B regularly polls mapped ...

3. What is the recommended way to copy or move a file from a local to NFS directory?    stackoverflow.com

File.renameTo fails over NFS mounts so I'm using the commons.io FileUtils class's moveFile method. Occasionally it throws an IOException when moving a file however that file correctly shows up in the ...

4. File validation on NFS volumes    coderanch.com

I want to validate my NFS file path. I have a shared folder in remote machine and I've mapped that folder to some logical drive(Ex Z:\Test). Now I need to check of Z:\Test is valid path or not. I've tried with the following code and found that sometimes it's not working as desired. public boolean validatePath(String nfsPath) { File dir = ...

6. File Moving on Mounted Devices (NFS/ Samba)    coderanch.com

Hello, An Interesting Observation: We can move files from Java using renameTo() function, one of my solution is distributed in 3 tiers. First 2 on linux (NFS mapping) and 3 tier is on windows (Samba mapping). When I try to move files from one linux system folder to other (NFS) or linux system to windows system folder(samba), it doesn't returns any ...

8. Lots of .nfs files being created    coderanch.com

I wrote a program that needs to parse through close to 4MB of data that is a compilation of smaller blocks of data which in turn are compilations of even smaller messages. I currently read a block from the file and then write that block to a temp file in order to read/parse through the smaller messages. I noticed that each ...

9. Problem during remove file .nfs into directory    forums.oracle.com

Hi, I've an java application that remove all file present into directory. The code are follow: String messaggioErrore=""; if (!"".equals(archivio.getPathHD1())){ File dirArchivio = archivio.percorso(Documento.SORGENTE_HD1); boolean esiste = dirArchivio.exists(); if (esiste){ boolean cancellabile = dirArchivio.canWrite(); if (cancellabile){ FileUtils.deleteDirectory(dirArchivio); boolean esisteAncora = dirArchivio.exists(); if (esisteAncora){ //errore --> problemi durante la cancellazione della directory dell'archivio messaggioErrore += "Cancellazione incompleta della directory " + archivio.getPathHD1(); ...





10. NFS File Access problem    forums.oracle.com