Directories converted into files with the same size
Hi Gurus,
I know this sounds weird, We have encountered many incidents where some directories on several Solaris 10 boxes, will be converted to files with the same size. for example the file below :
:D mount -t vfat /dev/hda1 /mnt
my dillemma is simple i have psion 5 mx wich is an epoc type machine not only does it only work on windows as far as I know but I have to convert the files (the usual stuff!) sometimes a humen error happens and the files that I want to transfer to the linux drive... (7 Replies)
Hi All
I want to plan my backups, but 1st i would like to know what is the size of each directory. Is there any command which can show me the size of directories?
Regards (2 Replies)
$ls -lrt mydir
total 12
drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp
drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache
$ ls -lrt mydir/web.cache/
total 0
$ ls -lrt mydir/tmp/
total 0
Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
hai,
i am new to unix scripting & learning unix scripting and doing some assignments....
i have an assignment as follows,
i want to check the size of the text file and .ext files in all directories,
if any one of them is greater than 100mb , i have to display those files..
... (2 Replies)
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
Alright so I've tried a couple different things that at first glance, looked like they worked.
find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time.
find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Hi guys,
i'm searching for a command, which gives me back all the directories which are greater than a particular size?
thx for helping so far :b:
guti (2 Replies)
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies
LEARN ABOUT OPENSOLARIS
csx_convertsize
csx_ConvertSize(9F) Kernel Functions for Drivers csx_ConvertSize(9F)NAME
csx_ConvertSize - convert device sizes
SYNOPSIS
#include <sys/pccard.h>
int32_t csx_ConvertSize(convert_size_t *cs);
INTERFACE LEVEL
Solaris DDI Specific (Solaris DDI)
PARAMETERS
cs Pointer to a convert_size_t structure.
DESCRIPTION
csx_ConvertSize() is a Solaris-specific extension that provides a method for clients to convert from one type of device size representation
to another, that is, from devsize format to bytes and vice versa.
STRUCTURE MEMBERS
The structure members of convert_size_t are:
uint32_t Attributes;
uint32_t bytes;
uint32_t devsize;
The fields are defined as follows:
Attributes This is a bit-mapped field that identifies the type of size conversion to be performed. The field is defined as follows:
CONVERT_BYTES_TO_DEVSIZE Converts bytes to devsize format.
CONVERT_DEVSIZE_TO_BYTES Converts devsize format to bytes.
bytes If CONVERT_BYTES_TO_DEVSIZE is set, the value in the bytes field is converted to a devsize format and returned in the dev-
size field.
devsize If CONVERT_DEVSIZE_TO_BYTES is set, the value in the devsize field is converted to a bytes value and returned in the bytes
field.
RETURN VALUES
CS_SUCCESS Successful operation.
CS_BAD_SIZE Invalid bytes or devsize.
CS_UNSUPPORTED_FUNCTION No PCMCIA hardware installed.
CONTEXT
This function may be called from user or kernel context.
SEE ALSO csx_ModifyWindow(9F), csx_RequestWindow(9F)
PCCard 95 Standard, PCMCIA/JEIDA
SunOS 5.11 19 Jul 1996 csx_ConvertSize(9F)