diff options
| author | wguanghao <wuguanghao3@huawei.com> | 2025-09-22 22:37:57 +0800 |
|---|---|---|
| committer | wguanghao <wuguanghao3@huawei.com> | 2025-09-24 10:36:09 +0800 |
| commit | aacb1c114169491b7b4ff3b75d85dd3255e4d0fb (patch) | |
| tree | 2079f9158943de9efd13925fbd0a8698d2fb5304 /lib/loopdev.c | |
| parent | 6fbde1c7db838e22b109e2e58eaa51b086758bc6 (diff) | |
| download | util-linux-aacb1c114169491b7b4ff3b75d85dd3255e4d0fb.tar.gz | |
losetup: rename function *_delete_* to *_detach_*
Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Diffstat (limited to 'lib/loopdev.c')
| -rw-r--r-- | lib/loopdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/loopdev.c b/lib/loopdev.c index 8a51e5e5f4..4836a3ab5d 100644 --- a/lib/loopdev.c +++ b/lib/loopdev.c @@ -1603,14 +1603,14 @@ int loopcxt_ioctl_blocksize(struct loopdev_cxt *lc, uint64_t blocksize) return 0; } -int loopcxt_delete_device(struct loopdev_cxt *lc) +int loopcxt_detach_device(struct loopdev_cxt *lc) { int rc, fd = loopcxt_get_fd(lc); if (fd < 0) return -EINVAL; - DBG(SETUP, ul_debugobj(lc, "calling LOOP_SET_CLR_FD")); + DBG(SETUP, ul_debugobj(lc, "calling LOOP_CLR_FD")); rc = repeat_on_eagain( ioctl(fd, LOOP_CLR_FD, 0) ); if (rc != 0) { @@ -1786,7 +1786,7 @@ int loopdev_is_used(const char *device, const char *filename, /* * Returns: 0 = success, < 0 error */ -int loopdev_delete(const char *device) +int loopdev_detach(const char *device) { struct loopdev_cxt lc; int rc; @@ -1798,7 +1798,7 @@ int loopdev_delete(const char *device) if (!rc) rc = loopcxt_set_device(&lc, device); if (!rc) - rc = loopcxt_delete_device(&lc); + rc = loopcxt_detach_device(&lc); loopcxt_deinit(&lc); return rc; } |
