filesystems

Is Silverlight a good enough platform for a Web-based operating system?

I do not work with Silverlight personally. However, I still keep an eye out on it. Silverlight 3 and the upcoming 4 has many features that seems would make it a nice web-based operating platform like out-of-browser capacities, printing support, speed, deep-zoom, multi-touch, many controls and many more. I am wondering if you think it can...

Determining cache misses for various filesystems

Hello, I've got a project for school where I have to find out how many cache misses a filesystem will have under heavy and light loads and on a multiple processor machine. After discussing this with my professor, I came up with a basic plan of execution: Create a program which will bog down the filesystem and fill up the buffer cache. ...

Programmatically modifying a file on Windows Server 2008 (Web Ed.)

I have written a .NET 2008 application, incorporating Microsoft.Office.Interop.Excel, that modifies an existing Excel 2007 spreadsheet. It works perfectly on my WinXP development computer. When I upload the app to a Microsoft Web Server 2008, it opens the file and reads from the file, but when the app tries to save the file, it throws t...

File system regular expression search tool

What is the best tool to make complex (multi-line) regular expression file contents searches with good reporting capabilities? I need to make a report over large Java/JSP code base and I have to make some charts afterward. Eclipse is rather good at searches, but it does not provide good report of what is found. It just shows the tree ...

/proc/sys/fs/aio-nr is never higher than 1024 (AIO on linux)

I'm trying to use async io on linux. As far as i know there're 3 options: kernel calls (io_submit and friends) libRT - uses threads in user space libRTKAIO - wrapper of kernel calls which does not use threads I'm using the last option, and i see, that in my unit test that runs a lot of async io requests in multiple threads, /proc/sy...

NTFS alternate data streams

Today I have seen this weird magic NTFS system supports: each file can have multiple data streams. Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data stream for that file. This is strictly NTFS related magic and I don't see any noble reason for having these streams around. You ...

how to copy locked files ( Device or resource busy error) on windows xp without admin permissions

Is there is any way I can copy locked files on windows xp machine without having admin rights? I used unloker tool its great but needs admin rights to install and run. how it could be done in some programming language like perl/shell/c c++ etc. or if there exists some workaround for this. ...

BlackBerry - Location/directory on device to save file from application

My program saves a file on the device during runtime and reads/writes data from it during runtime. Currently it gets saved in the SDCard. I want to know if saving it in device flash memory would be better than removable media. Does device allows us to write something in its internal memory? Suggestions/Ideas? Thanks ...

open_basedir restriction in effect. File(/) is not within the allowed path(s):

I'm getting this error on an avatar upload on my site. I've never gotten it before and nothing was changed recently for me to begin getting this error... Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): ...

Unique file identifier in windows

Is there are way to uniquely identify a file (and possibly directories) for the lifetime of the file regardless of moves, renames and content modifications? (Windows 2000 and later). Making a copy of a file should give the copy it's own unique identifier. My application associates various meta-data with individual files. If files are ...

How do I determine an open file's size in Python?

There's a file that I would like to make sure does not grow larger than 2 GB (as it must run on a system that uses ext 2). What's a good way to check a file's size bearing in mind that I will be writing to this file in between checks? In particular, do I need to worry about buffered, unflushed changes that haven't been written to disk ...

Is it possible to make a process on a server act like a filesystem to interact with FTP?

What I want to do is run a process on my server that acts like an FTP server. So people can upload things through "FTP" but really it's a program I'm running that lets me put information about that file in a database and not really put the files where they say they're going. E.g. Website Templates. A user of my service wants to put up t...

saving just the deltas over a network/internet

Is there currently a filesystem agnostic way to have a file in two locations on a network, change one copy, and have just the changed bits (or more likely blocks) synced to the other copy? It would be awesome to have media files in the cloud, allow another service to read them and me to edit them with their web app, and then only have t...

Is there a good reason to limit Windows filename extentions to three characters?

I am creating a utility that will store data on flat file in a specific binary format. I want the filename extension to be specific to my application. Is there any reason other than the old 8.3 filename limit for restricting the extension to 3 characters, and if not, what is the limit? Can I have myfilename.MyExtensionSoHandsOffEverybody...

Potential errors with my makeValidFilename function?

It is inspired by "How to make a valid Windows filename from an arbitrary string?", I've written a function that will take arbitrary string and make it a valid filename. My function should technically be an answer to this question, but I want to make sure I've not done anything stupid, or overlooked anything, before posting it as an ans...

Do any common OS file systems use hashes to avoid storing the same content data more than once?

Many file storage systems use hashes to avoid duplication of the same file content data (among other reasons), e.g., Git and Dropbox both use SHA256. The file names and dates can be different, but as long as the content gets the same hash generated, it never gets stored more than once. It seems this would be a sensible thing to do in a ...

[WPF] Open directory dialog

I want the user to select a directory where a file that I will then generate will be saved. I know that in WPF I should use the OpenFileDialog from Win32, but unfortunately the dialog requires file(s) to be selected - it stays open if I simply click OK without choosing one. I could "hack up" the functionality by letting the user pick a f...

Walking a Linux/Unix filesystem with Java?

I need to create a Java util that will recurse its way through a Unix (and/or Linux) filesystem and build an object model of the directory structure, retrieve file info - size, created date, last accessed date etc - plus I need to retrieve info on the physical storage device the files are sitting on. Ideally, this util will be portable. ...

Scalability of Ext4

One of the features of the file system Ext4 is its new Scalability features documented here. I was wondering what changes at the source code level would enable Ext4 to support such features, like the virtually unlimited number of sub directories which Ext3 didn't. Pointers to the relevant areas of the Kernel source tree would be greatly ...

How do I check what filesystem my SVN repository is using?

I've already created my repository and have been using it for a while. I wanted to check what filesystem data store it is using: Berkeley DB or FSFS. I'm not sure how to check this. I've looked at svnadmin, svnlook, etc. Any hints on how to do this? ...