Sponsored Content
Full Discussion: 'cp' and slack space
Special Forums Hardware Filesystems, Disks and Memory 'cp' and slack space Post 302117958 by sysgate on Thursday 17th of May 2007 10:48:20 AM
Old 05-17-2007
This is a good question, actually, each filesystem has its own rules for slack space. Let's consider UFS or ext3, as they act the same in this meaning :
Quote:
By default, sparse SOURCE files are detected by a crude heuristic and the corresponding DEST file is made sparse as well. That is the behavior selected by --sparse=auto. Specify --sparse=always to create a sparse DEST file whenever the SOURCE file contains a long enough sequence of zero bytes. Use --sparse=never to inhibit creation of sparse files.
where sparse files are a type of computer files that attempt to use file system space more efficiently; so, "cp" by default doesn't use slack space, means , it's optimized for work.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

wake up user space thread from kernel space ISR

Hello, I'm searching for a proper way to let the kernel space ISR(implemented in a kernel module) wake up a user space thread on a hardware interrupt. Except for sending a real-time signal, is it possible to use a semaphore? I've searched it on google, but it seems impossible to share a... (0 Replies)
Discussion started by: aaronwong
0 Replies

2. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

3. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

4. Slackware

Firefox 8 install on slack 13.37

Slackware 13.37 stores Firefox 4 in different directories than is suggested for Mozilla says to use for Firefox 8.0 (/opt/firefox). Which should I use? If I use /opt/... how do I remove the old 4.0? Will this screw up the icons and will I need to reset them? How? (4 Replies)
Discussion started by: slak0
4 Replies

5. Fedora

Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi, I run Fedora 17. I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies

6. UNIX for Dummies Questions & Answers

Changing only the first space to a tab in a space delimited text file

Hi, I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies

7. UNIX for Advanced & Expert Users

Need to remove leading space from awk statement space from calculation

I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation? Here is my query: cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}' 02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies

8. Shell Programming and Scripting

Gawk --- produce the output in pattern space instead of END space

hi, I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is HOST IP DATE/TIME - - "GET/POST reuest" "User Agent" HOST IP DATE/TIME - - "GET/POST reuest" "User Agent" HOST IP DATE/TIME - - "GET/POST reuest" "User Agent" HOST... (2 Replies)
Discussion started by: busyboy
2 Replies

9. Shell Programming and Scripting

Slack message multi line from UNIX script

Hi OS: Redhat Version 7.5 Enterprise Trying to post message from shell script to Slack channel and trying below code: text="$msg" text1="$lmsg" if ] then echo "No text specified" exit 1 fi escapedText=$(echo $text | $text1 | sed 's/"/\"/g' | sed "s/'/\'/g" )... (13 Replies)
Discussion started by: onenessboy
13 Replies
ICAT(1) 						      General Commands Manual							   ICAT(1)

NAME
icat - Output the contents of a file based on its inode number. SYNOPSIS
icat [-hrsvV] [-f fstype ] [-i imgtype ] [-o imgoffset ] [-b dev_sector_size] image [images] inode DESCRIPTION
icat opens the named image(s) and copies the file with the specified inode number to standard output. ARGUMENTS
-f fstype Specifies the file system type. Use '-f list' to list the supported file system types. If not given, autodetection methods are used. -h Skip over holes in sparse files, so that absolute address information is lost. This option saves space when copying sparse files. -r Use file recovery techniques if the file is deleted. -s Include the slack space in the output. -i imgtype Identify the type of image file, such as raw or split. Use '-i list' to list the supported types. If not given, autodetection methods are used. -o imgoffset The sector offset where the file system starts in the image. -b dev_sector_size The size, in bytes, of the underlying device sectors. If not given, the value in the image format is used (if it exists) or 512-bytes is assumed. -v Enable verbose mode, output to stderr. -V Display version image [images] One (or more if split) disk or partition images whose format is given with '-i'. inode Inode number. icat concatenates the contents of all specified files. LICENSE
This software is distributed under the IBM Public License. HISTORY
First appeared in The Coroners Toolkit (TCT) 1.0 and is now in The Sleuth Kit. AUTHOR(S) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA This version is maintained by Brian Carrier (carrier at sleuthkit at org). Send documentation updates to <doc-updates at sleuthkit dot org> ICAT(1)
All times are GMT -4. The time now is 08:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy