Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory Compressed Filesystem for Linux Post 302820847 by Corona688 on Thursday 13th of June 2013 02:14:10 PM
Old 06-13-2013
ext3/4 have hashes for big enough directories I believe. Lots of these features can be found in different things, but seldom all together.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Filesystem for Linux - Solaris

Do you know how I can find detailed information on filesystems on Linux and Solaris. And I mean not only for the OS but and how it(the OS) uses the hard drives! Thank you in advance!! Solid Snake;) ;) (3 Replies)
Discussion started by: SolidSnake
3 Replies

2. Linux

Linux filesystem

Hi all, Suppose i have a disk having three partitions (hda1,hda2,hda3) ,and are mounted all under /dev/ .. My question is where the / will be existing.which file system it wil be in? I am windows user new to linux/unix.Any help in learning internals would be appreciated . Thanks ,... (1 Reply)
Discussion started by: gkrishn
1 Replies

3. Tips and Tutorials

Linux Filesystem Hierarchy

Hi, Please have a look this: http://tldp.org/LDP/Linux-Filesystem-Hierarchy/Linux-Filesystem-Hierarchy.pdf I think this can be very useful for a beginner/intermediate level user to understand the filesystem hierarchy and as well as it can be used as a reference to various linux commands and... (0 Replies)
Discussion started by: tayyabq8
0 Replies

4. Programming

Uncompress on linux a UDP Payload compressed on win$ using closed source library

I am trying to uncompress a UDP packets payload. The data was compressed using "Xceed Version 4.3" which is a closed source windows program. I need to uncompress the data on a linux box. The technical support people at Xceed tell me that the data was compressed using "the Deflate compression method... (0 Replies)
Discussion started by: sysadmin9
0 Replies

5. UNIX for Advanced & Expert Users

Linux FileSystem Internal Buffer size:

I know that Univ FileSystem stores all file data in the form of first few direct nodes followed by indirect nodes. But internally some systems implement where , a single block of 4096 isnt allocated alone a single block basis on physical drive, rather a large chunk of data is allocated and no. of... (1 Reply)
Discussion started by: GloriousDaisy
1 Replies

6. UNIX for Dummies Questions & Answers

How can I check if I have raw filesystem on unix/linux

Hello again. Please can someone tell me how can i check if my filesystem is raw on unix/linux ? Is there some file to check or something like that to be sure ? also , when i do : $ ls -l /dev/rdisk i get among other things , this also(there resides are oracle related files) : ... (2 Replies)
Discussion started by: tonijel
2 Replies

7. SuSE

filesystem from unix 32 to linux 64

Hi all. Im migrating from a Unix 32 bit to a linux suse 10 64 bit and would like to know whats the best way to migrate the filesystems? cpio? tar? ftp? Could I make a backup in tape in the unix 32 and restore it in the linux 64? thanx (1 Reply)
Discussion started by: mrodrig
1 Replies

8. Linux

filesystem locking issue on linux

hi, we are getting filesystem locking issue very frequently. we are using linux rhel 5.5. our filesystem type is gfs2 where we are facing locking issue and unix admin team reboots server to over come with this issue. suddenly we used to face slowness on server and server gets hung. after that... (1 Reply)
Discussion started by: anshu ranjan
1 Replies

9. Linux

Partition of linux filesystem wit meaning

Cud some one pls help me wit some partitions of linux filesystem wit their meaning....urgent cos is an assignment (5 Replies)
Discussion started by: GODBLESSME
5 Replies

10. Shell Programming and Scripting

Is there any way to find the compressed size of a file without compressing it in linux

i need to backup a directory from one partition to another and and compress that directory after backing up, so i need to predict the compressed size of the directory with out actually compressing it, to check whether the space is available in the destination partition to accommodate the zipped... (2 Replies)
Discussion started by: Kesavan
2 Replies
Config::Model::Manual::ModelCreationAdvanced(3pm)	User Contributed Perl Documentation	 Config::Model::Manual::ModelCreationAdvanced(3pm)

NAME
Config::Model::Manual::ModelCreationAdvanced - Creating a model with advanced features VERSION
version 2.021 Introduction The page Config::Model::Manual::ModelCreationIntroduction explains what is a configuration tree and a configuration model and how to create a simple configuration model. But a configuration model can be more complex and define interactions between elements with the following features: o Model warp. For instance, Xorg driver options change depending on driver name ("nvidia", "radeon"...) o Simple computation from other elements (used for upgrades) o References. For instance, in "Xorg::Device::Radeon", "Monitor-DVI-0" name must refer to one of the monitors declared in "Monitor" section. Caveat: Xorg examples are based on Xorg 1.4 and may not be valid for Xorg 1.5 or 1.6 Model warp From a user's point of view, model warp will look like the structure or properties of the configuration is changing (or adapting) dynamically depending on the values being entered. For instance, when changing a driver name from "fglrx" to "radeon", some options will disappear from the GUI and some other options will pop-in. Model warping need not be that spectacular and can have more subtle effect like changing a default value. Of course, there's no magic, model warp properties needs to be prepared and declared in the model. Warped value Let's start simple with value warp: the properties of a single value is changed dynamically. Let's imagine a configuration file with 2 values: size which can be set to big or small and length whose maximum value is 10 when size is small and 50 when size is big. (this may be dumb, but it's for the sake of the example). So the basic model without warp will be element => [ size => { type => 'leaf', value_type => 'enum', choice => ['big','small'], }, length => { type => 'leaf', value_type => 'integer', max => '10', }, ] Now we need to declare the relationship between size and length to be able to change dynamically the max property. This setup is made of 2 specifications: o what is the element that will trigger the change (called warp master in the doc) o what is the effect of the warp master change The first is done with a declaration of the path to follow to find the warp master (associated to a variable). The second is a set of value properties: element => [ size => { type => 'leaf', value_type => 'enum', choice => ['big','small'], }, length => { type => 'leaf', value_type => 'integer', warp => { # change specification follow => { # declare what trigger the change size_type => '- size' # size_type: go 1 level above and fetch # size value }, rules => { # how to apply change '$size_type eq "small"' => { # set max to 10 when size is small max => 10 }, '$size_type eq "big" ' => { # set max to 50 when size is big max => 50 }, }, }, } ] Warp in or warp out an element Here's a real use case scenario from OpenSsh. "ssh_config" enables a user to set up a tunnel through ssh. The input of this tunnel can listen to localhost (default) or to other hosts. These other hosts are specified by the bind_adress part of the "LocalForward" parameter. But this bind address is ignored if "GatewayPorts" is false (which is the default). In order to present only meaningful parameters to the user, bind_address parameter must be hidden when "GatewayPorts" is false and shown when "GatewayPorts" is true. Here's the recipe. First create a boolean element for "GatewayPorts": GatewayPorts => { type => 'leaf', value_type => 'boolean', upstream_default => 0, }, And "LocalForward" that will provide bind_address parameter: LocalForward => { type => 'list', cargo => { type => 'node', config_class_name => 'Ssh::PortForward' }, summary => 'Local port forwarding', experience => 'advanced', } In "Ssh::PortForward" configuration class, declare bind_address with the warp instructions: bind_address => { type => 'leaf', value_type => 'uniline', level => 'hidden', # by default, is hidden from user warp => { # instructions to show bind_address follow => { # specify what does trigger the change gp => '- - GatewayPorts' # gp: go to 2 levels above in tree ('- -') and # fetch GatewayPorts value }, rules => [ # specify how to apply the change triggered by gp '$gp' => { # apply change when $gp is true level => 'normal' # set level to normal (instead of 'hidden'). This change # will show this parameter in the UI } ] }, }, warped node Sometimes, warping a value line by line is not practical. For instance, in "/etc/fstab" the mount options of a file system change drastically from one file system to another. In this case, it's better to swap a configuration class with another. For instance, swap "vfat" mount options with "ext3" mount options when a file system is changed from "vfat" to "ext3". Here's how this can be done. First declare the "fstype" parameter: fs_vfstype => { type => 'leaf', mandatory => 1, value_type => 'enum', choice => [ 'auto', 'davfs', 'vfat', 'ext2', 'ext3', ] , # etc ... } Then declare "mntopts" as a warped_node (not a simple "node")) that will use "fs_vfstype" to swap one config class with another: fs_mntopts => { type => 'warped_node', # a shape-shifting node follow => { f1 => '- fs_vfstype' , # use fs_vfstype as a trigger }, rules => [ # condition => effect: config class to swap in "$f1 eq 'proc'" => { config_class_name => 'Fstab::CommonOptions' }, "$f1 eq 'auto'" => { config_class_name => 'Fstab::CommonOptions' }, "$f1 eq 'vfat'" => { config_class_name => 'Fstab::CommonOptions' }, "$f1 eq 'swap'" => { config_class_name => 'Fstab::SwapOptions' }, "$f1 eq 'ext3'" => { config_class_name => 'Fstab::Ext3FsOpt' }, # etc ... ] } References Computation and migrations Cascaded warp Config::Model also supports cascaded warps: A warped value is dependent on another value which is itself a warped value. Feedback welcome Feel free to send comments and suggestion about this page at config-model-users at lists dot sourceforge dot net. AUTHORS
Dominique Dumont <ddumont at cpan.org> perl v5.14.2 2012-11-09 Config::Model::Manual::ModelCreationAdvanced(3pm)
All times are GMT -4. The time now is 12:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy