11-25-2014
1000kb is "drivermaker's megabytes", invented to inflate the apparent capacity of the drives they sell.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
first of all, sorry about my english...I´m a spanish newbie to this marvelous OS and i have just a couple of doubts...u know? :-)
1) how big should my swap partition be if i installed debian 2.2r3 or FreeBSD 4.x on a AMD k7 1400Mhz with 512Mb of Random Access Memory?
i heard that those OS... (1 Reply)
Discussion started by: I[X]ION
1 Replies
2. UNIX for Advanced & Expert Users
How can I move some space allocated to one partition to another,
i.e. from "/var" to "/" .
Thanks! (4 Replies)
Discussion started by: jason6792
4 Replies
3. Shell Programming and Scripting
Hello,
I am trying to monitor disk space for each node on the machine. I am able to get all individual nodes but for the '/' node. For example:
df -k:
bash-2.05b# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xxx 4127108 2415340 1502120 62% /
/dev/yyy ... (3 Replies)
Discussion started by: chiru_h
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
On one of our solaris servers, the root partition has filled up,(it was poorly sized in the first place), Does anyone have any advice about the best way to add space to a partition. I'm sure I've read how to do this somewhere before but just can't remember...:(
A colleague has suggested... (1 Reply)
Discussion started by: kenny123m
1 Replies
5. Red Hat
Dear Friends ,
I am using Redhat Ent Linux 5.0 with a EMC storage which HDD space is 4 TB. After Installing RHEL 5 , I get 4 TB space available but when I am going to create a partition then the OS show 2TB available space . I cannot create a partition above 2TB space . Is there any limitation... (3 Replies)
Discussion started by: shipon_97
3 Replies
6. UNIX for Dummies Questions & Answers
hi
My System is Sun Microsystems Inc. SunOS 5.10 Solaris
Partition Info is
/dev/vx/dsk/bootdg/var
27G 25G 1.2G 96% /var
/dev/vx/dsk/bootdg/oravol
110G 54G 56G 49% /export/home
I want to shift space 20G from /export/home to /var
What should be the command ?? (2 Replies)
Discussion started by: kaushik02018
2 Replies
7. Slackware
I am planning to install slack 13.37 on an old stand-alone PIII (512 mb ram) with 17 gb disk space. I need to keep lotsa pdf, chm type e-books for programming with few other misc. documents.
I'm going to use this system for my personal use.
It has no network but I browse internet with cable... (0 Replies)
Discussion started by: vectrum
0 Replies
8. Linux
Hi OS Experts
I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain
here is o/p of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies
9. Shell Programming and Scripting
Hi
I'm doing some resilience testing and need to write a script to consume all of the available disk space on a partition and then to free it up again.
This would need to be -
Safe
Dynamic, in that it calculates the free space prior to consuming it.
I might want to go on to consume a... (7 Replies)
Discussion started by: bbq
7 Replies
10. Red Hat
I have a RHEL 5.3 machine with the following partitions and free space:
Free space on the partitions
/ : 74GB
/boot : 81MB
/var : 73GB
/home : 37GB
/icat : 758MB
/opt : 1.5GB
Now is it possible to allot a free space of some other partitions to /opt? I want around 100 GB more space... (4 Replies)
Discussion started by: omniok
4 Replies
LEARN ABOUT OSX
dbix::class::inflatecolumn
DBIx::Class::InflateColumn(3) User Contributed Perl Documentation DBIx::Class::InflateColumn(3)
NAME
DBIx::Class::InflateColumn - Automatically create references from column data
SYNOPSIS
# In your table classes
__PACKAGE__->inflate_column('column_name', {
inflate => sub { ... },
deflate => sub { ... },
});
DESCRIPTION
This component translates column data into references, i.e. "inflating" the column data. It also "deflates" references into an appropriate
format for the database.
It can be used, for example, to automatically convert to and from DateTime objects for your date and time fields. There's a convenience
component to actually do that though, try DBIx::Class::InflateColumn::DateTime.
It will handle all types of references except scalar references. It will not handle scalar values, these are ignored and thus passed
through to SQL::Abstract. This is to allow setting raw values to "just work". Scalar references are passed through to the database to deal
with, to allow such settings as " 'year + 1'" and " 'DEFAULT' " to work.
If you want to filter plain scalar values and replace them with something else, see DBIx::Class::FilterColumn.
METHODS
inflate_column
Instruct DBIx::Class to inflate the given column.
In addition to the column name, you must provide "inflate" and "deflate" methods. The "inflate" method is called when you access the field,
while the "deflate" method is called when the field needs to used by the database.
For example, if you have a table "events" with a timestamp field named "insert_time", you could inflate the column in the corresponding
table class using something like:
__PACKAGE__->inflate_column('insert_time', {
inflate => sub { DateTime::Format::Pg->parse_datetime(shift); },
deflate => sub { DateTime::Format::Pg->format_datetime(shift); },
});
(Replace DateTime::Format::Pg with the appropriate module for your database, or consider DateTime::Format::DBI.)
The coderefs you set for inflate and deflate are called with two parameters, the first is the value of the column to be inflated/deflated,
the second is the row object itself. Thus you can call "->result_source->schema->storage->dbh" in your inflate/defalte subs, to feed to
DateTime::Format::DBI.
In this example, calls to an event's "insert_time" accessor return a DateTime object. This DateTime object is later "deflated" when used in
the database layer.
get_inflated_column
my $val = $obj->get_inflated_column($col);
Fetch a column value in its inflated state. This is directly analogous to "get_column" in DBIx::Class::Row in that it only fetches a
column already retrieved from the database, and then inflates it. Throws an exception if the column requested is not an inflated column.
set_inflated_column
my $copy = $obj->set_inflated_column($col => $val);
Sets a column value from an inflated value. This is directly analogous to "set_column" in DBIx::Class::Row.
store_inflated_column
my $copy = $obj->store_inflated_column($col => $val);
Sets a column value from an inflated value without marking the column as dirty. This is directly analogous to "store_column" in
DBIx::Class::Row.
SEE ALSO
DBIx::Class::Core - This component is loaded as part of the "core" DBIx::Class components; generally there is no need to load it directly
AUTHOR
Matt S. Trout <mst@shadowcatsystems.co.uk>
CONTRIBUTORS
Daniel Westermann-Clark <danieltwc@cpan.org> (documentation)
Jess Robinson <cpan@desert-island.demon.co.uk>
LICENSE
You may distribute this code under the same terms as Perl itself.
perl v5.16.2 2012-10-18 DBIx::Class::InflateColumn(3)