偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

losetup 中文man頁面

系統(tǒng)
losetup 用 來 將 loop device 與 檔 案 或 block device 聯(lián) 結(jié) 、 分 離 . 以 及 查 詢 loop device 目 前 的 狀 況 , 如 只 給 定 loop_device 的 參 數(shù) . 則 秀 出 loop device 目 前 的 狀 況

NAME

losetup - 設(shè) 定 與 控 制 環(huán)回設(shè)備  

總覽 SYNOPSIS

losetup [ -e encryption ] [ -o offset ] loop_device file
losetup [ -d ] loop_device  

描述

losetup 用 來 將 loop device 與 檔 案 或 block device 聯(lián) 結(jié) 、 分 離 . 以 及 查 詢 loop device 目 前 的 狀 況 , 如 只 給 定 loop_device 的 參 數(shù) . 則 秀 出 loop device 目 前 的 狀 況 .  

選項(xiàng) OPTIONS

-d
將 某 個(gè) 檔 案 或 裝 制 與 loop 裝 置 分 離
-e encryption
啟 動(dòng) 資 料 編 碼 . 下 列 為 可 用 的 選 項(xiàng) 參 數(shù) :啟 動(dòng) 資 料 編 碼 . 下 列 為 可 用 的 選 項(xiàng) 參 數(shù) :
NONE
不 編 碼 ( 定 義 值 ) .
XOR
使 用 簡 易 的 XOR 編 碼
DES
使 用 DES 編 碼 . DES 編 碼 須 在 kernel 上 加 上 DES 編 碼 功 能 . DES 編 碼 是 利 用 啟 始 值 做 為 密 碼 保 護(hù) 來 防 止 他 人 用 字 典 功 擊 法 破 解 .
-o offset
資 料 開 啟 時(shí) 資 料 平移(offset) 幾 個(gè) bytes 來 與 檔 案 或 裝 置 聯(lián) 接

返回值 RETURN VALUE

losetup returns 0 on success, nonzero on failure. When losetup displays the status of a loop device, it returns 1 if the device is not configured and 2 if an error occurred which prevented losetup from determining the status of the device.

文件 FILES

/dev/loop0,/dev/loop1,...   loop devices (major=7)

范例 EXAMPLE

如 核 心 使 用 模 組 , 須 先 使 用 下 列 命 令 將 模 組 載 入 .

# insmod loop.o

下 列 為 使 用 loop 裝 置 的 簡 單 范 例 .

dd if=/dev/zero of=/file bs=1k count=100 losetup -e des /dev/loop0 /file Password: Init (up to 16 hex digits): mkfs -t ext2 /dev/loop0 100 mount -t ext2 /dev/loop0 /mnt ... umount /dev/loop0 losetup -d /dev/loop0

核 心 使 用 模 組 , 須 利 用 下 列 命 令 移 除 loop 模 組 .

# rmmod loop

#p#

NAME

losetup - set up and control loop devices  

SYNOPSIS

losetup [ [-e|-E] encryption ] [ -o offset ] [ -p pfd ] loop_device file
losetup [ -d ] loop_device  

DESCRIPTION

losetup is used to associate loop devices with regular files or block devices, to detach loop devices and to query the status of a loop device. If only the loop_device argument is given, the status of the corresponding loop device is shown.

Encryption

It is possible to specify transfer functions (for encryption/decryption or other purposes) using one of the -E and -e options. There are two mechanisms to specify the desired encryption: by number and by name. If an encryption is specified by number then one has to make sure that the Linux kernel knows about the encryption with that number, probably by patching the kernel. Standard numbers that are always present are 0 (no encryption) and 1 (XOR encryption). When the cryptoloop module is loaded (or compiled in), it uses number 18. This cryptoloop module wil take the name of an arbitrary encryption type and finds the module that knows how to perform that encryption. (Thus, either one uses a number different from 18 with the -E option, or one uses a name with the -e option.)  

OPTIONS

-d
Detach the file or device associated with the specified loop device.
-E encryption_type
Enable data encryption with specified number.
-e encryption_name
Enable data encryption with specified name.
-o offset
The data start is moved offset bytes into the specified file or device.
-p num
Read the passphrase from file descriptor with number num instead of from the terminal.

RETURN VALUE

losetup returns 0 on success, nonzero on failure. When losetup displays the status of a loop device, it returns 1 if the device is not configured and 2 if an error occurred which prevented losetup from determining the status of the device.

FILES

/dev/loop0, /dev/loop1, ...   loop devices (major=7)

EXAMPLE

If you are using the loadable module you must have the module loaded first with the command

# insmod loop.o

Maybe also encryption modules are needed.

# insmod des.o # insmod cryptoloop.o

The following commands can be used as an example of using the loop device.

# dd if=/dev/zero of=/file bs=1k count=100 # losetup -e des /dev/loop0 /file Password: Init (up to 16 hex digits): # mkfs -t ext2 /dev/loop0 100 # mount -t ext2 /dev/loop0 /mnt ... # umount /dev/loop0 # losetup -d /dev/loop0

If you are using the loadable module you may remove the module with the command

# rmmod loop
責(zé)任編輯:韓亞珊 來源: CMPP.net
相關(guān)推薦

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 18:38:37

vfprintf中文man

2011-08-24 13:57:35

DECLARE中文man

2011-08-16 10:21:13

setconsole中文man

2011-08-24 17:06:42

NOTIFY中文man

2011-08-16 09:32:01

quotaoff中文man

2011-08-16 09:34:06

quotaon中文man

2011-08-11 17:21:47

chattr中文man

2011-08-16 10:54:03

passwd中文man

2011-08-24 15:35:52

hier中文man

2011-08-25 14:26:01

read中文man

2011-08-23 18:05:21

ABORT中文man

2011-08-25 14:46:57

bindtextdom中文man

2011-08-25 18:14:26

tcflow中文man

2011-08-16 10:19:24

timeconfig中文man

2011-08-25 16:55:26

gets中文man

2011-08-25 17:15:16

printf中文man
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號